Package

reactivemongo.api.bson

monocle

Permalink

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

    Permalink

    Field wrapper

  2. implicit final class NestedField extends AnyRef

    Permalink

    Wrapper for a nested field

Value Members

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

    Permalink

    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]

    Permalink

    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.

    import reactivemongo.api.bson.monocle._
    
    // For a top document { "foo": { "bar": 1 } }
    val lens = nested("foo", field[Int]("bar"))

Inherited from LowPriorityMonocle

Inherited from AnyRef

Inherited from Any

Ungrouped