ElementProducer

Companion:
class
class Object
trait Matchable
class Any

Type members

Classlikes

A composition operation for ElementProducer, so that it forms an additive monoid with the Empty instance as id.

A composition operation for ElementProducer, so that it forms an additive monoid with the Empty instance as id.

Givens

Givens

import reactivemongo.api.bson.BSONDocument

BSONDocument(
 "foo" -> None // tuple as empty ElementProducer (no field)
)

Implicits

Implicits

implicit def safeNameOptionValue2ElementProducer[T](element: (String, Option[T]))(implicit writer: SafeBSONWriter[T]): ElementProducer
import reactivemongo.api.bson.BSONDocument

BSONDocument(
 "foo" -> Some(1), // tuple as BSONElement("foo", BSONInteger(1))
 "bar" -> Option.empty[Int] // tuple as empty ElementProducer (no field)
)

Inherited implicits

implicit def nameOptionValue2ElementProducer[T](element: (String, Option[T]))(implicit writer: BSONWriter[T]): ElementProducer
import reactivemongo.api.bson.BSONDocument

BSONDocument(
 "foo" -> Some(1), // tuple as BSONElement("foo", BSONInteger(1))
 "bar" -> Option.empty[Int] // tuple as empty ElementProducer (no field)
)
Inherited from:
ElementProducerLowPriority1
implicit def safeTuple2ElementProducer[T](pair: (String, T))(implicit writer: SafeBSONWriter[T]): ElementProducer
import reactivemongo.api.bson.BSONDocument

BSONDocument(
 "foo" -> 1 // tuple as BSONElement("foo", BSONInteger(1))
)
Inherited from:
ElementProducerLowPriority2
implicit def tuple2ElementProducer[T](pair: (String, T))(implicit writer: BSONWriter[T]): ElementProducer
import reactivemongo.api.bson.BSONDocument

BSONDocument(
 "foo" -> 1 // tuple as BSONElement("foo", BSONInteger(1))
)
Inherited from:
ElementProducerLowPriority3