appends keys and values to BSBObject.
appends keys and values to BSBObject. This mutates DBObject and will return mutated object *
appends elements of given map to BSBObject.
appends elements of given map to BSBObject. This mutates DBObject and will return mutated object *
Adds given key to object *
Removes more keys from DBObject.
Removes more keys from DBObject. This mutates DBObject and will return mutated object *
removes given key from DBObject.
removes given key from DBObject. This mutates DBObject and will return mutated object *
Helper to get a _id of the object, this is type-unsafe and may fail with exception if _id is not ObjectId
*
Unsafe variant of getAs, will fail if the k
does not exists and if k
is different type than A
*
Alias to apply
Converts DBObject to scala map.
Converts DBObject to scala map. Returned map is immutable and will not reflect any changed in DBObject *
Gets field of object, if of supplied type.
Gets field of object, if of supplied type. This is type-unsafe and may fail with exception if k is not of A
type *
Safe variant of as
*
Safe variant of getAs
*
Safe variant of _id
*
Operations on mongodb object. NOTE: Unfortunately mongodb object is mutable structure. So this actually "mutates" the mongodb instead of creating new instance every time.