Package

reactivemongo.api

bson

Permalink

package bson

BSON main API

import reactivemongo.api.bson._

// { "name": "Johny", "surname": "Doe", "age": 28, "months": [1, 2, 3] }
document ++ ("name" -> "Johny") ++ ("surname" -> "Doe") ++
("age" -> 28) ++ ("months" -> array(1, 2, 3))

// { "_id": generatedId, "name": "Jane", "surname": "Doe", "age": 28,
//   "months": [1, 2, 3], "details": { "salary": 12345,
//   "inventory": ["foo", 7.8, 0, false] } }
document.++("_id" -> generateId, "name" -> "Jane", "surname" -> "Doe",
  "age" -> 28, "months" -> array(1, 2, 3),
  "details" -> document(
    "salary" -> 12345L, "inventory" -> array("foo", 7.8, 0L, false)))

System properties:

The following properties can be set (e.g. using -D option).

Linear Supertypes
Utils, Aliases, DefaultBSONHandlers, BSONIdentityHandlers, BSONIdentityLowPriorityHandlers, LowPriority1BSONHandlers, LowPriority2BSONHandlers, LowPriority3BSONHandlers, LowPriority4BSONHandlers, LowPriorityBSONHandlersCompat, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. bson
  2. Utils
  3. Aliases
  4. DefaultBSONHandlers
  5. BSONIdentityHandlers
  6. BSONIdentityLowPriorityHandlers
  7. LowPriority1BSONHandlers
  8. LowPriority2BSONHandlers
  9. LowPriority3BSONHandlers
  10. LowPriority4BSONHandlers
  11. LowPriorityBSONHandlersCompat
  12. AnyRef
  13. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. sealed abstract class BSONArray extends BSONValue

    Permalink

    A BSONArray (type 0x04) is a indexed sequence of BSONValue.

    A BSONArray (type 0x04) is a indexed sequence of BSONValue.

    import reactivemongo.api.bson._
    
    BSONArray(BSONString("foo"), BSONDouble(1.2D))
  2. abstract class BSONArrayCollectionReader[M[_], T] extends BSONReader[M[T]]

    Permalink
    Attributes
    protected
    Definition Classes
    LowPriority1BSONHandlers
  3. final class BSONBinary extends BSONValue

    Permalink

    A BSON binary value.

    A BSON binary value.

    import reactivemongo.api.bson.{ BSONBinary, Subtype }
    
    BSONBinary("foo".getBytes("UTF-8"), Subtype.GenericBinarySubtype)
  4. final class BSONBoolean extends BSONValue with Value

    Permalink

    BSON boolean value

  5. sealed trait BSONBooleanLike extends AnyRef

    Permalink

    A BSON value that can be seen as a boolean.

    A BSON value that can be seen as a boolean.

    Conversions:

    • number = 0 ~> false
    • number != 0 ~> true
    • boolean
    • undefined ~> false
    • null ~> false
    import scala.util.Success
    import reactivemongo.api.bson.{ BSONBooleanLike, BSONDocument, BSONInteger }
    
    val bi = BSONInteger(1)
    assert(bi.asTry[BSONBooleanLike].flatMap(_.toBoolean) == Success(true))
    
    val doc = BSONDocument("field" -> bi)
    assert(doc.getAsTry[BSONBooleanLike]("field").
      flatMap(_.toBoolean) == Success(true))
  6. final class BSONDateTime extends BSONValue with Value

    Permalink

    BSON date time value

  7. final class BSONDecimal extends BSONValue with Value with Value

    Permalink

    Value wrapper for a BSON 128-bit decimal.

  8. sealed abstract class BSONDocument extends BSONValue with ElementProducer with BSONDocumentLowPriority with BSONDocumentExperimental

    Permalink

    A BSONDocument structure (BSON type 0x03).

    A BSONDocument structure (BSON type 0x03).

    A BSONDocument is an unordered set of fields (String, BSONValue).

    Note: The insertion/initial order of the fields may not be maintained through the operations.

  9. trait BSONDocumentHandler[T] extends BSONDocumentReader[T] with BSONDocumentWriter[T] with BSONHandler[T]

    Permalink

    Reads and writers T values to/from BSONDocument.

  10. trait BSONDocumentReader[T] extends BSONReader[T]

    Permalink
  11. trait BSONDocumentWriter[T] extends BSONWriter[T]

    Permalink
  12. final class BSONDouble extends BSONValue with Value with Value

    Permalink

    A BSON Double.

    A BSON Double.

    reactivemongo.api.bson.BSONDouble(1.23D)
  13. sealed abstract class BSONElement extends ElementProducer

    Permalink

    BSON element, typically a pair of name and BSONValue.

    BSON element, typically a pair of name and BSONValue.

    import reactivemongo.api.bson.{ BSONElement, BSONString }
    
    BSONElement("name", BSONString("value"))
  14. trait BSONHandler[T] extends BSONReader[T] with BSONWriter[T]

    Permalink

    A BSON handler is able to both read and write T values from/to BSON representation.

    A BSON handler is able to both read and write T values from/to BSON representation.

    import scala.util.Try
    import reactivemongo.api.bson.{ BSONHandler, BSONValue }
    
    def roundtrip[T](value: T)(implicit handler: BSONHandler[T]): Try[Boolean] =
      for {
        bson: BSONValue <- handler.writeTry(value)
        dser <- handler.readTry(bson)
      } yield (dser == value) // true
  15. final class BSONInteger extends BSONValue with Value with Value

    Permalink

    BSON Integer value

  16. final class BSONJavaScript extends BSONValue

    Permalink

    BSON JavaScript value.

  17. final class BSONJavaScriptWS extends BSONValue

    Permalink

    BSON JavaScript value with scope (WS).

  18. final class BSONLong extends BSONValue with Value with Value

    Permalink

    BSON Long value

  19. sealed trait BSONMaxKey extends BSONValue

    Permalink

    BSON Max key value

  20. sealed trait BSONMinKey extends BSONValue

    Permalink

    BSON Min key value

  21. sealed trait BSONNull extends BSONValue with Value

    Permalink

    BSON null value

  22. sealed trait BSONNumberLike extends AnyRef

    Permalink

    A BSON value that can be seen as a number.

    A BSON value that can be seen as a number.

    Conversions:

    import scala.util.Success
    import reactivemongo.api.bson.{ BSONNumberLike, BSONDocument, BSONInteger }
    
    val bi = BSONInteger(1)
    assert(bi.asTry[BSONNumberLike].flatMap(_.toLong) == Success(1L))
    
    val doc = BSONDocument("field" -> bi)
    assert(doc.getAsTry[BSONNumberLike]("field").
      flatMap(_.toDouble) == Success(1D))
  23. sealed abstract class BSONObjectID extends BSONValue

    Permalink

    BSON ObjectId value.

    BSON ObjectId value.

    import scala.util.Try
    import reactivemongo.api.bson.BSONObjectID
    
    val oid: BSONObjectID = BSONObjectID.generate()
    
    def foo: Try[BSONObjectID] = BSONObjectID.parse(oid.stringify)

    | Timestamp (seconds) | Machine identifier | Thread identifier | Increment | --- | --- | --- | --- | 4 bytes | 3 bytes | 2 bytes | 3 bytes

  24. trait BSONReader[T] extends AnyRef

    Permalink

    A reader that produces an instance of T from a subtype of BSONValue.

  25. final class BSONRegex extends BSONValue

    Permalink

    BSON Regex value.

  26. sealed trait BSONStrictDocument extends BSONStrictDocumentLowPriority

    Permalink

    EXPERIMENTAL: Strict documentation representation with at most one value per field name (no duplicate).

    EXPERIMENTAL: Strict documentation representation with at most one value per field name (no duplicate).

    import reactivemongo.api.bson.BSONDocument
    
    def strict1 = // { 'foo': 1 }
      BSONDocument.strict("foo" -> 1, "foo" -> 2)
    
    def strict2 = BSONDocument("foo" -> 1, "foo" -> 2).asStrict
    
    assert(strict1 == strict2)
  27. final class BSONString extends BSONValue

    Permalink

    A BSON string.

    A BSON string.

    reactivemongo.api.bson.BSONString("foo")
  28. final class BSONSymbol extends BSONValue

    Permalink

    BSON Symbol value.

  29. sealed abstract class BSONTimestamp extends BSONValue with Value

    Permalink

    BSON Timestamp value

  30. sealed trait BSONUndefined extends BSONValue with Value

    Permalink

    BSON undefined value

  31. sealed trait BSONValue extends AnyRef

    Permalink

    A BSON value

  32. trait BSONWriter[T] extends AnyRef

    Permalink

    A writer that produces a subtype of BSONValue from an instance of T.

  33. type BaseColl[T] = Traversable[T]

    Permalink
    Definition Classes
    Aliases
  34. sealed trait DocumentClass[T] extends AnyRef

    Permalink

    Evidence that T can be serialized as a BSON document.

    Evidence that T can be serialized as a BSON document.

    Annotations
    @silent()
  35. sealed trait ElementProducer extends Producer[BSONElement]

    Permalink

    See BSONDocument

  36. trait FieldNaming extends (String) ⇒ String

    Permalink

    Naming strategy, to map each class property to the corresponding field.

  37. trait KeyReader[T] extends AnyRef

    Permalink

    Mapping from a BSON string to T

  38. trait KeyWriter[T] extends AnyRef

    Permalink

    Mapping from a BSON string to T.

    Mapping from a BSON string to T.

    final class Foo(val v: String) extends AnyVal
    
    val dict = Map[Foo, Int](
      (new Foo("key") -> 1),
      (new Foo("name") -> 2))
    
    import reactivemongo.api.bson.KeyWriter
    
    implicit def fooKeyWriter: KeyWriter[Foo] =
      KeyWriter[Foo] { foo =>
        "foo:" + foo.v
      }
    
    reactivemongo.api.bson.BSON.writeDocument(dict)
    // Success = {'foo:key': 1, 'foo:name': 2}
  39. sealed trait MacroConfiguration extends AnyRef

    Permalink

    Macro configuration;

    Macro configuration;

    It allows to configure compile time options, and behaviour to be retained at runtime (field & type naming).

    import reactivemongo.api.bson.{
      BSONDocumentReader, MacroConfiguration, Macros
    }
    
    case class Foo(name: String)
    
    val r1: BSONDocumentReader[Foo] = Macros.configured.reader[Foo]
    
    val r2: BSONDocumentReader[Foo] = Macros.configured(
      MacroConfiguration.simpleTypeName).reader[Foo]
    See also

    documentation

  40. sealed trait MacroOptions extends AnyRef

    Permalink

    Macros with 'Opts' suffix will take additional options in the form of type parameters that will customize behaviour of the macros during compilation.

    Macros with 'Opts' suffix will take additional options in the form of type parameters that will customize behaviour of the macros during compilation.

    import reactivemongo.api.bson.{ BSONDocumentWriter, Macros, MacroOptions }
    
    case class Bar(score: Float)
    
    val w: BSONDocumentWriter[Bar] =
      Macros.using[MacroOptions.Default].writer[Bar]
  41. sealed trait Producer[T] extends AnyRef

    Permalink
  42. type StringOps = scala.collection.immutable.StringOps

    Permalink
    Definition Classes
    Aliases
  43. sealed trait Subtype extends AnyRef

    Permalink

    Binary Subtype

  44. trait TypeNaming extends (Class[_]) ⇒ String

    Permalink

    Naming strategy, to map each class to a discriminator value.

    Naming strategy, to map each class to a discriminator value.

    import reactivemongo.api.bson.{ MacroConfiguration, TypeNaming }
    
    val cfg1 = MacroConfiguration(typeNaming = TypeNaming.FullName)
    
    val cfg2 = MacroConfiguration(typeNaming = TypeNaming.FullName)
    
    val cfg3 = MacroConfiguration(
      typeNaming = TypeNaming { cls: Class[_] =>
        "_" + cls.getSimpleName
      })
  45. final class ¬[A, B] extends AnyRef

    Permalink

    Type level evidence that type A is not type B.

    Type level evidence that type A is not type B.

    Annotations
    @SuppressWarnings()

Value Members

  1. object BSON

    Permalink

    Utility functions

  2. object BSONArray

    Permalink

    BSONArray utilities

    BSONArray utilities

    import reactivemongo.api.bson.{ BSONArray, BSONString }
    
    BSONArray("foo", 1) match {
      case BSONArray(BSONString(s) +: _) => s == "foo"
      case _ => false
    }
  3. object BSONBinary

    Permalink

    BSONBinary utilities

    BSONBinary utilities

    import reactivemongo.api.bson.{ BSONBinary, Subtype }
    
    val bin1 = BSONBinary(
      "foo".getBytes("UTF-8"), Subtype.GenericBinarySubtype)
    
    // See Subtype.UuidSubtype
    val uuid = BSONBinary(java.util.UUID.randomUUID())
  4. implicit object BSONBinaryHandler extends BSONHandler[Array[Byte]] with SafeBSONWriter[Array[Byte]]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  5. object BSONBoolean

    Permalink
  6. implicit object BSONBooleanHandler extends BSONHandler[Boolean] with SafeBSONWriter[Boolean]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  7. object BSONBooleanLike

    Permalink

    BSONBooleanLike utilities

  8. object BSONDateTime

    Permalink
  9. implicit object BSONDateTimeHandler extends BSONHandler[Instant] with SafeBSONWriter[Instant]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  10. object BSONDecimal

    Permalink
  11. implicit object BSONDecimalHandler extends BSONHandler[BigDecimal]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  12. object BSONDocument

    Permalink

    BSONDocument factories & utilities.

    BSONDocument factories & utilities.

    reactivemongo.api.bson.BSONDocument("foo" -> 1, "bar" -> "lorem")
  13. object BSONDocumentHandler

    Permalink

    BSONDocumentHandler factories

  14. object BSONDocumentReader

    Permalink

    BSONDocumentReader factories

  15. object BSONDocumentWriter

    Permalink

    BSONDocumentWriter factories.

  16. object BSONDouble

    Permalink

    BSONDouble utilities

    BSONDouble utilities

    import reactivemongo.api.bson.BSONDouble
    
    BSONDouble(1.23D) match {
      case BSONDouble(v) => assert(v == 1.23D)
      case _ => ???
    }
  17. implicit object BSONDoubleHandler extends BSONHandler[Double] with SafeBSONWriter[Double]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  18. object BSONElement extends BSONElementLowPriority

    Permalink

    BSONElement factories and utilities.

  19. implicit object BSONFloatHandler extends BSONHandler[Float] with SafeBSONWriter[Float]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  20. object BSONHandler

    Permalink

    BSONHandler factories

  21. object BSONInteger

    Permalink
  22. implicit object BSONIntegerHandler extends BSONHandler[Int] with SafeBSONWriter[Int]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  23. object BSONJavaScript

    Permalink
  24. object BSONJavaScriptWS

    Permalink
  25. implicit object BSONLocalTimeHandler extends BSONHandler[LocalTime] with SafeBSONWriter[LocalTime]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  26. object BSONLong

    Permalink
  27. implicit object BSONLongHandler extends BSONHandler[Long] with SafeBSONWriter[Long]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  28. object BSONMaxKey extends BSONMaxKey

    Permalink
  29. object BSONMinKey extends BSONMinKey

    Permalink
  30. object BSONNull extends BSONNull

    Permalink
  31. object BSONNumberLike

    Permalink

    BSONNumberLike utilities

  32. object BSONObjectID

    Permalink

    BSONObjectID utilities

  33. object BSONReader extends BSONReaderCompat

    Permalink

    BSONReader factories

  34. object BSONRegex

    Permalink
  35. object BSONString

    Permalink

    BSONString utilities

    BSONString utilities

    import reactivemongo.api.bson.BSONString
    
    BSONString("foo") match {
      case BSONString(v) => v == "foo"
      case _ => false
    }
  36. implicit object BSONStringHandler extends BSONHandler[String] with SafeBSONWriter[String]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  37. object BSONSymbol

    Permalink
  38. object BSONTimestamp

    Permalink

    Timestamp companion

  39. implicit object BSONURIHandler extends BSONHandler[URI] with SafeBSONWriter[URI]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  40. implicit object BSONURLHandler extends BSONHandler[URL] with SafeBSONWriter[URL]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  41. implicit object BSONUUIDHandler extends BSONHandler[UUID] with SafeBSONWriter[UUID]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  42. object BSONUndefined extends BSONUndefined

    Permalink

    Single value for BSONUndefined type

  43. object BSONValue extends BSONValueLowPriority1

    Permalink

    BSONValue factories and utilities

  44. implicit object BSONValueIdentity extends BSONReader[BSONValue] with BSONWriter[BSONValue]

    Permalink
    Definition Classes
    BSONIdentityLowPriorityHandlers
  45. object BSONWriter extends BSONWriterCompat

    Permalink

    BSONWriter factories.

  46. object DocumentClass

    Permalink

    See DocumentClass

  47. object ElementProducer extends ElementProducerLowPriority

    Permalink
  48. object FieldNaming

    Permalink

    Naming companion

  49. object KeyReader

    Permalink
  50. object KeyWriter extends LowPriorityKeyWriter

    Permalink

    KeyWriter factories

  51. object MacroConfiguration

    Permalink

    MacroConfiguration factories and utilities

  52. object MacroOptions

    Permalink

    MacroOptions factories & utilities.

  53. object Macros

    Permalink

    Macros for generating BSONReader and BSONWriter at compile time.

    Macros for generating BSONReader and BSONWriter at compile time.

    import reactivemongo.api.bson.Macros
    
    case class Person(name: String, surname: String)
    
    implicit val personHandler = Macros.handler[Person]
    See also

    MacroConfiguration for extended configuration

    MacroOptions for specific options

  54. object Subtype

    Permalink
  55. object TypeNaming

    Permalink

    TypeNaming factories

  56. def array(values: Producer[BSONValue]*): BSONArray

    Permalink

    Returns an array with given values.

    Returns an array with given values.

    import reactivemongo.api.bson._
    
    val arr = array("bar", 1L) // [ 'bar', NumberLong(1) ]
  57. def array: BSONArray

    Permalink

    Returns an empty array.

    Returns an empty array.

    import reactivemongo.api.bson._
    
    val arr1 = BSONString("bar") +: array // [ 'bar' ]
    val arr2 = BSONInteger(1) +: arr1 // [ 1, 'bar' ]
  58. implicit def bsonArrayReader: BSONReader[BSONArray]

    Permalink
    Definition Classes
    BSONIdentityHandlers
    Annotations
    @inline()
  59. implicit def bsonArrayWriter: BSONWriter[BSONArray]

    Permalink
    Definition Classes
    BSONIdentityHandlers
    Annotations
    @inline()
  60. implicit def bsonBinaryReader: BSONReader[BSONBinary]

    Permalink
    Definition Classes
    BSONIdentityHandlers
    Annotations
    @inline()
  61. implicit def bsonBinaryWriter: BSONWriter[BSONBinary]

    Permalink
    Definition Classes
    BSONIdentityHandlers
    Annotations
    @inline()
  62. implicit def bsonBooleanReader: BSONReader[BSONBoolean]

    Permalink
    Definition Classes
    BSONIdentityHandlers
    Annotations
    @inline()
  63. implicit def bsonBooleanWriter: BSONWriter[BSONBoolean]

    Permalink
    Definition Classes
    BSONIdentityHandlers
    Annotations
    @inline()
  64. implicit def bsonDateTimeReader: BSONReader[BSONDateTime]

    Permalink
    Definition Classes
    BSONIdentityHandlers
    Annotations
    @inline()
  65. implicit def bsonDateTimeWriter: BSONWriter[BSONDateTime]

    Permalink
    Definition Classes
    BSONIdentityHandlers
    Annotations
    @inline()
  66. implicit def bsonDecimalReader: BSONReader[BSONDecimal]

    Permalink
    Definition Classes
    BSONIdentityHandlers
    Annotations
    @inline()
  67. implicit def bsonDecimalWriter: BSONWriter[BSONDecimal]

    Permalink
    Definition Classes
    BSONIdentityHandlers
    Annotations
    @inline()
  68. implicit def bsonDocumentReader: BSONDocumentReader[BSONDocument]

    Permalink
    Definition Classes
    BSONIdentityHandlers
    Annotations
    @inline()
  69. implicit def bsonDocumentWriter: BSONDocumentWriter[BSONDocument]

    Permalink
    Definition Classes
    BSONIdentityHandlers
    Annotations
    @inline()
  70. implicit def bsonDoubleReader: BSONReader[BSONDouble]

    Permalink
    Definition Classes
    BSONIdentityHandlers
    Annotations
    @inline()
  71. implicit def bsonDoubleWriter: BSONWriter[BSONDouble]

    Permalink
    Definition Classes
    BSONIdentityHandlers
    Annotations
    @inline()
  72. implicit def bsonIntegerReader: BSONReader[BSONInteger]

    Permalink
    Definition Classes
    BSONIdentityHandlers
    Annotations
    @inline()
  73. implicit def bsonIntegerWriter: BSONWriter[BSONInteger]

    Permalink
    Definition Classes
    BSONIdentityHandlers
    Annotations
    @inline()
  74. implicit def bsonJavaScriptReader: BSONReader[BSONJavaScript]

    Permalink
    Definition Classes
    BSONIdentityHandlers
    Annotations
    @inline()
  75. implicit def bsonJavaScriptWSReader: BSONReader[BSONJavaScriptWS]

    Permalink
    Definition Classes
    BSONIdentityHandlers
    Annotations
    @inline()
  76. implicit def bsonJavaScriptWSWriter: BSONWriter[BSONJavaScriptWS]

    Permalink
    Definition Classes
    BSONIdentityHandlers
    Annotations
    @inline()
  77. implicit def bsonJavaScriptWriter: BSONWriter[BSONJavaScript]

    Permalink
    Definition Classes
    BSONIdentityHandlers
    Annotations
    @inline()
  78. def bsonLocalDateHandler(zone: ZoneId): BSONHandler[LocalDate]

    Permalink

    Returns a BSON handler for java.time.LocalDate, considering the specified time zone.

    Returns a BSON handler for java.time.LocalDate, considering the specified time zone.

    Definition Classes
    DefaultBSONHandlers
    Annotations
    @inline()
  79. implicit val bsonLocalDateHandler: BSONHandler[LocalDate]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  80. def bsonLocalDateTimeHandler(zone: ZoneId): BSONHandler[LocalDateTime]

    Permalink

    Returns a BSON handler for java.time.LocalDateTime, considering the specified time zone.

    Returns a BSON handler for java.time.LocalDateTime, considering the specified time zone.

    Definition Classes
    DefaultBSONHandlers
    Annotations
    @inline()
  81. implicit val bsonLocalDateTimeHandler: BSONHandler[LocalDateTime]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  82. implicit def bsonLongReader: BSONReader[BSONLong]

    Permalink
    Definition Classes
    BSONIdentityHandlers
    Annotations
    @inline()
  83. implicit def bsonLongWriter: BSONWriter[BSONLong]

    Permalink
    Definition Classes
    BSONIdentityHandlers
    Annotations
    @inline()
  84. implicit def bsonMapKeyWriter[K, V <: BSONValue](implicit keyWriter: KeyWriter[K]): BSONDocumentWriter[Map[K, V]]

    Permalink
    Definition Classes
    LowPriority3BSONHandlers
  85. implicit def bsonMapWriter[V <: BSONValue]: BSONDocumentWriter[Map[String, V]]

    Permalink
    Definition Classes
    LowPriority1BSONHandlers
  86. implicit def bsonMaxKeyReader: BSONReader[BSONMaxKey]

    Permalink
    Definition Classes
    BSONIdentityHandlers
    Annotations
    @inline()
  87. implicit def bsonMaxKeyWriter: BSONWriter[BSONMaxKey]

    Permalink
    Definition Classes
    BSONIdentityHandlers
    Annotations
    @inline()
  88. implicit def bsonMinKeyReader: BSONReader[BSONMinKey]

    Permalink
    Definition Classes
    BSONIdentityHandlers
    Annotations
    @inline()
  89. implicit def bsonMinKeyWriter: BSONWriter[BSONMinKey]

    Permalink
    Definition Classes
    BSONIdentityHandlers
    Annotations
    @inline()
  90. implicit def bsonNullReader: BSONReader[BSONNull]

    Permalink
    Definition Classes
    BSONIdentityHandlers
    Annotations
    @inline()
  91. implicit def bsonNullWriter: BSONWriter[BSONNull]

    Permalink
    Definition Classes
    BSONIdentityHandlers
    Annotations
    @inline()
  92. implicit def bsonObjectIDReader: BSONReader[BSONObjectID]

    Permalink
    Definition Classes
    BSONIdentityHandlers
    Annotations
    @inline()
  93. implicit def bsonObjectIDWriter: BSONWriter[BSONObjectID]

    Permalink
    Definition Classes
    BSONIdentityHandlers
    Annotations
    @inline()
  94. def bsonOffsetDateTimeHandler(zone: ZoneId): BSONHandler[OffsetDateTime]

    Permalink

    Returns a BSON handler for java.time.OffsetDateTime, considering the specified time zone.

    Returns a BSON handler for java.time.OffsetDateTime, considering the specified time zone.

    Definition Classes
    DefaultBSONHandlers
    Annotations
    @inline()
  95. implicit val bsonOffsetDateTimeHandler: BSONHandler[OffsetDateTime]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  96. implicit def bsonRegexReader: BSONReader[BSONRegex]

    Permalink
    Definition Classes
    BSONIdentityHandlers
    Annotations
    @inline()
  97. implicit def bsonRegexWriter: BSONWriter[BSONRegex]

    Permalink
    Definition Classes
    BSONIdentityHandlers
    Annotations
    @inline()
  98. implicit def bsonStringReader: BSONReader[BSONString]

    Permalink
    Definition Classes
    BSONIdentityHandlers
    Annotations
    @inline()
  99. implicit def bsonStringWriter: BSONWriter[BSONString]

    Permalink
    Definition Classes
    BSONIdentityHandlers
    Annotations
    @inline()
  100. implicit def bsonSymbolReader: BSONReader[BSONSymbol]

    Permalink
    Definition Classes
    BSONIdentityHandlers
    Annotations
    @inline()
  101. implicit def bsonSymbolWriter: BSONWriter[BSONSymbol]

    Permalink
    Definition Classes
    BSONIdentityHandlers
    Annotations
    @inline()
  102. implicit def bsonTimestampReader: BSONReader[BSONTimestamp]

    Permalink
    Definition Classes
    BSONIdentityHandlers
    Annotations
    @inline()
  103. implicit def bsonTimestampWriter: BSONWriter[BSONTimestamp]

    Permalink
    Definition Classes
    BSONIdentityHandlers
    Annotations
    @inline()
  104. implicit def bsonUndefinedReader: BSONReader[BSONUndefined]

    Permalink
    Definition Classes
    BSONIdentityHandlers
    Annotations
    @inline()
  105. implicit def bsonUndefinedWriter: BSONWriter[BSONUndefined]

    Permalink
    Definition Classes
    BSONIdentityHandlers
    Annotations
    @inline()
  106. def bsonZonedDateTimeHandler(zone: ZoneId): BSONHandler[ZonedDateTime]

    Permalink

    Returns a BSON handler for java.time.ZonedDateTime, considering the specified time zone.

    Returns a BSON handler for java.time.ZonedDateTime, considering the specified time zone.

    Definition Classes
    DefaultBSONHandlers
    Annotations
    @inline()
  107. implicit val bsonZonedDateTimeHandler: BSONHandler[ZonedDateTime]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  108. implicit final def collectionReader[M[_], T](implicit cbf: CanBuildFrom[M[_], T, M[T]], reader: BSONReader[T]): BSONReader[M[T]]

    Permalink
    Definition Classes
    LowPriorityBSONHandlersCompat
  109. implicit def collectionWriter[T, Repr](implicit arg0: (Repr) ⇒ Iterable[T], writer: BSONWriter[T], notOption: ¬[Repr, Option[T]]): BSONWriter[Repr]

    Permalink
    Definition Classes
    LowPriority1BSONHandlers
    Annotations
    @silent()
  110. def document(elements: ElementProducer*): BSONDocument

    Permalink

    Returns a document with given elements.

    Returns a document with given elements.

    import reactivemongo.api.bson._
    
    val doc = document("foo" -> 1)
    // { 'foo': 1 }
  111. def document: BSONDocument

    Permalink

    Returns an empty document.

    Returns an empty document.

    import reactivemongo.api.bson._
    
    val doc = document ++ ("foo" -> 1)
    // { 'foo': 1 }
  112. def element(name: String, value: BSONValue): BSONElement

    Permalink
  113. package exceptions

    Permalink
  114. def generateId: BSONObjectID

    Permalink

    Returns a newly generated object ID.

  115. implicit def mapKeyReader[K, V](implicit keyReader: KeyReader[K], valueReader: BSONReader[V]): BSONDocumentReader[Map[K, V]]

    Permalink
    Definition Classes
    LowPriority2BSONHandlers
  116. implicit def mapKeySafeWriter[K, V](implicit keyWriter: KeyWriter[K] with SafeKeyWriter[K], valueWriter: BSONWriter[V] with SafeBSONWriter[V]): BSONDocumentWriter[Map[K, V]]

    Permalink
    Definition Classes
    LowPriority3BSONHandlers
  117. implicit def mapKeyWriter[K, V](implicit keyWriter: KeyWriter[K], valueWriter: BSONWriter[V]): BSONDocumentWriter[Map[K, V]]

    Permalink
    Definition Classes
    LowPriority4BSONHandlers
  118. implicit def mapReader[V](implicit valueReader: BSONReader[V]): BSONDocumentReader[Map[String, V]]

    Permalink
    Definition Classes
    LowPriority1BSONHandlers
  119. implicit def mapSafeWriter[V](implicit valueWriter: BSONWriter[V] with SafeBSONWriter[V]): BSONDocumentWriter[Map[String, V]]

    Permalink
    Definition Classes
    LowPriority1BSONHandlers
  120. implicit def mapWriter[V](implicit valueWriter: BSONWriter[V]): BSONDocumentWriter[Map[String, V]]

    Permalink
    Definition Classes
    LowPriority2BSONHandlers
  121. def maxKey: BSONMaxKey

    Permalink

    Returns a BSON MaxKey value

  122. macro def migrationRequired[A](details: String): A

    Permalink

    Keeps a A statement but raise a migration error at compile-time.

    Keeps a A statement but raise a migration error at compile-time.

    The compilation error can be disabled by setting the system property reactivemongo.api.migrationRequired.nonFatal to true.

    Annotations
    @SuppressWarnings()
  123. def minKey: BSONMinKey

    Permalink

    Returns a BSON MinKey value

  124. implicit def nameValueOrdering[T <: BSONValue]: Ordering[(String, T)]

    Permalink

    Key/value ordering

    Key/value ordering

    import reactivemongo.api.bson.BSONString
    
    Seq("foo" -> BSONString("1"), "bar" -> BSONString("1")).
      sorted // == [ "bar" -> .., "foo" -> .. ]
  125. def null: BSONNull

    Permalink

    Returns a BSON Null value

  126. def undefined: BSONUndefined

    Permalink

    Returns a BSON Undefined value

  127. object ¬

    Permalink
    Annotations
    @SuppressWarnings()

Inherited from Utils

Inherited from Aliases

Inherited from DefaultBSONHandlers

Inherited from BSONIdentityHandlers

Inherited from BSONIdentityLowPriorityHandlers

Inherited from LowPriority1BSONHandlers

Inherited from LowPriority2BSONHandlers

Inherited from LowPriority3BSONHandlers

Inherited from LowPriority4BSONHandlers

Inherited from LowPriorityBSONHandlersCompat

Inherited from AnyRef

Inherited from Any

Ungrouped