Driver
class db.Driver
Driver(objectName)
Arguments
objectName
{ String } The object definition name.
Returns
{ Driver } A driver instance.
aggregate(pipeline)
Arguments
pipeline
{ Object[] } An optional aggrgation pipeline.
Returns
count(where)
Arguments
where
{ Object } An optional where filter document.
Returns
{ Number } A document count.
deleteMany(match)
Arguments
match
{ Object } A match filter document.
Returns
deleteOne(match)
Arguments
match
{ Object } A match filter document.
Returns
{ DeleteOperation }
find(where)
Arguments
where
{ Object } An optional where filter document.
Returns
{ QueryCursor }
readOne(where)
Arguments
where
{ Object } A where filter document.
Returns
{ ReadOneOperation }
insertMany(docs)
Arguments
docs
{ Object[] } An array of documents to insert.
Returns
insertOne(doc)
Arguments
doc
{ Object } A document to insert.
Returns
{ InsertOperation }
updateOne(match, doc)
Arguments
match
{ Object } A match filter document.doc
{ Object } A document to update.
Returns
{ UpdateOperation }
updateMany(match, doc)
Arguments
match
{ Object } A match filter document.doc
{ Object } A document to update.
Returns
patchOne(match, doc)
Arguments
match
{ Object } A match filter document.doc
{ Object } A document to patch.
Returns
{ PatchOperation }
patchMany(match, doc)
Arguments
match
{ Object } A match filter document.doc
{ Object } A document to patch.
Returns
Last updated