object BsonDocument
Companion helper for a BsonDocument
- Since
1.0
- Alphabetic
- By Inheritance
- BsonDocument
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- def apply(json: String): BsonDocument
Creates a
BsonDocument
from a json StringCreates a
BsonDocument
from a json String- json
the json string
- returns
the BsonDocumet
- def apply(elems: CanBeBsonElement*): BsonDocument
Creates a
BsonDocument
from key value pairsCreates a
BsonDocument
from key value pairs- elems
the key, value pairs
- returns
the BsonDocument
- def apply(elems: Traversable[(String, BsonValue)]): BsonDocument
Creates a
BsonDocument
from the key value pairsCreates a
BsonDocument
from the key value pairs- elems
a traversable of key, value pairs
- returns
the BsonDocument
- def apply(): BsonDocument
Creates an empty
BsonDocument
Creates an empty
BsonDocument
- returns
the BsonDocument
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: