Queries the collection for existing documents.
If no arguments are passed to find(), all documents of the collection will be returned.
import vibe.db.mongo.mongo; void test() { auto coll = connectMongoDB("127.0.0.1").getCollection("test"); // find documents with status == "A" coll.find(["status": "A"]); }
- http://www.mongodb.org/display/DOCS/Querying - findOne
See Implementation
Queries the collection for existing documents.
If no arguments are passed to find(), all documents of the collection will be returned.