Document

sealed abstract class Document extends Bson
Companion:
object
trait Bson
class Object
trait Matchable
class Any

Value members

Abstract methods

def add(key: String, value: BsonValue): Document
def apply(key: String): Option[BsonValue]
def contains(key: String): Boolean
def filterKeys(predicate: String => Boolean): Document
def isEmpty: Boolean
def keys: Set[String]
def merge(other: Document): Document
def remove(key: String): Document
def size: Int
def toList: List[(String, BsonValue)]
def toMap: Map[String, BsonValue]
def toSet: Set[(String, BsonValue)]

Concrete methods

def +=[A](keyValuePair: (String, A))(implicit e: BsonValueEncoder[A]): Document
def add[A](keyValuePair: (String, A))(implicit e: BsonValueEncoder[A]): Document
def get(key: String): Option[BsonValue]
def getAs[A](key: String)(implicit d: BsonValueDecoder[A]): Option[A]
def getBoolean(key: String): Option[Boolean]
def getDocument(key: String): Option[Document]
def getDouble(key: String): Option[Double]
def getInt(key: String): Option[Int]
def getList(key: String): Option[List[BsonValue]]
def getLong(key: String): Option[Long]
def getNested(jsonPath: String): Option[BsonValue]
def getNestedAs[A](jsonPath: String)(implicit d: BsonValueDecoder[A]): Option[A]
def getObjectId(key: String): Option[ObjectId]
def getString(key: String): Option[String]
override def toBsonDocument: BsonDocument
Definition Classes
override def toBsonDocument[TDocument](documentClass: Class[TDocument], codecRegistry: CodecRegistry): BsonDocument
Definition Classes
Bson
def toJson: String