sealed trait CanBeBsonElement extends AnyRef
Represents a single BsonElement
This is essentially a (String, BsonValue)
key value pair. Any pair of (String, T)
where type T
has a BsonTransformer in
scope into a BsonValue is also a valid pair.
- Alphabetic
- By Inheritance
- CanBeBsonElement
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
- abstract val bsonElement: BsonElement
Concrete Value Members
-
def
key: String
The key of the BsonElement
The key of the BsonElement
- returns
the key
-
def
value: BsonValue
The value of the BsonElement
The value of the BsonElement
- returns
the BsonValue
This is the documentation for the MongoDB Scala driver.
Driver structure
The mongodb scala driver.
To get started you need a MongoClient instance, either from a connection string or via a org.mongodb.scala.MongoClientSettings.
Notable packages include: