Document

mongo4cats.bson.Document
See theDocument companion object
sealed abstract class Document extends Bson

Attributes

Companion
object
Graph
Supertypes
trait Bson
class Object
trait Matchable
class Any

Members list

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

Attributes

Definition Classes
override def toBsonDocument[TDocument](documentClass: Class[TDocument], codecRegistry: CodecRegistry): BsonDocument

Attributes

Definition Classes
Bson
def toJson: String