reactivemongo.api.bson.ElementProducer
See theElementProducer companion trait
object ElementProducer
Attributes
- Companion
- trait
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ElementProducer.type
Members list
Type members
Classlikes
object Composition extends (ElementProducer, ElementProducer) => ElementProducer
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
.
Attributes
- Supertypes
- Self type
-
Composition.type
Givens
Givens
import reactivemongo.api.bson.BSONDocument
BSONDocument(
"foo" -> None // tuple as empty ElementProducer (no field)
)
Attributes
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)
)
Attributes
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)
)
Attributes
- Inherited from:
- ElementProducerLowPriority1 (hidden)
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))
)
Attributes
- Inherited from:
- ElementProducerLowPriority2 (hidden)
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))
)
Attributes
- Inherited from:
- ElementProducerLowPriority3 (hidden)
In this article