robbiblubber.org

help | login | search:  
<<

Home Page
Index

Projects

Utility Suite
Data Suite
Bad Wolf Suite
WeakWiki

User Docs

ConfigNotepad
LED
rqoon
Nuub

Code Docs

.NET
Java
PHP

robbiblubber.org

Specs
Articles

Sources















read  source  history 


deleteOne()


MongoDB Driver Function Reference


Deletes the first document from a collection that meets the filter criteria.
More information can be found in the corresponding entry of the MongoDB Manual.



<collection>.deleteOne(<filter>[, <options>])



Arguments


<collection> The target collection.
<filter> A filter expression using query operators.
<options> A BOSN document specifying options.



Options


{ collation: <document>, hint: <document> }

collation A document specifying the collation.
hint A document specifying a hint.



Example


db.employees.deleteOne({ salary: { $gt: 700000 }});


Deletes one document from the employee collection with a salary greater than 700000.




home | MongoDB Driver Function Reference | MongoDB Driver