Packages

  • package root
    Definition Classes
    root
  • package reactivemongo
    Definition Classes
    root
  • package api
    Definition Classes
    reactivemongo
  • package bson

    BSON main API

    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).

    • reactivemongo.api.bson.bufferSizeBytes (integer; default: 96): Number of bytes used as initial size when allocating a new buffer.
    • reactivemongo.api.bson.document.strict (boolean; default: false): Flag to enable strict reading of document (filter duplicate fields, see BSONDocument).
    Definition Classes
    api
  • package exceptions
    Definition Classes
    bson
  • BSONValueNotFoundException
  • HandlerException
  • TypeDoesNotMatchException
  • ValueDoesNotMatchException

package exceptions

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. Protected

Type Members

  1. final class BSONValueNotFoundException extends Exception with NoStackTrace

    Formerly DocumentKeyNotFoundException

  2. final class HandlerException extends Exception with NoStackTrace

    Exception from a BSON reader/writer.

  3. final case class TypeDoesNotMatchException(expected: String, actual: String) extends Exception with NoStackTrace with Product with Serializable
  4. final case class ValueDoesNotMatchException(actual: String) extends Exception with NoStackTrace with Product with Serializable

Value Members

  1. object BSONValueNotFoundException extends Serializable
  2. object HandlerException extends Serializable

Ungrouped