Packages

package monocle

Monocle utilities for BSON values.

Linear Supertypes
LowPriorityMonocle, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. monocle
  2. LowPriorityMonocle
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. implicit final class Field extends AnyVal

    Field wrapper

  2. implicit final class NestedField extends AnyRef

    Wrapper for a nested field

Value Members

  1. def field[T](name: String)(implicit w: BSONWriter[T], r: BSONReader[T]): Optional[BSONDocument, T]

    Returns an optional lens for a field with the given name.

    Returns an optional lens for a field with the given name.

    T

    the field type

    Definition Classes
    LowPriorityMonocle
  2. def nested[T](documentField: String, f: Optional[BSONDocument, T]): Optional[BSONDocument, T]

    Returns an optional lens for a field f, nested in a document field.

    Returns an optional lens for a field f, nested in a document field.

    // For a top document { "foo": { "bar": 1 } }
    val lens = nested("foo", field[Int]("bar"))

Inherited from LowPriorityMonocle

Inherited from AnyRef

Inherited from Any

Ungrouped