MongoCollection.find
MongoCursor!R find(R = Bson, T, U)(T query, U returnFieldSelector, QueryFlags flags, int num_skip = 0, int num_docs_per_chunk = 0)deprecated Use the overload taking `FindOptions` instead, this method breaks in MongoDB 5.1 and onwards. Note: using a `$query` / `query` member to override the query arguments is no longer supported in the new overload.
No documentation available for this declaration.
MongoCursor!R find(R = Bson, T, U)(T query, U projection, FindOptions options = FindOptions.init) if (!is(U == FindOptions))Queries the collection for existing documents, limiting what fields are returned by the database. (called projection)
See Also
MongoCursor!R find(R = Bson, Q)(Q query, FindOptions options = FindOptions.init)Queries the collection for existing documents.
If no arguments are passed to find(), all documents of the collection will be returned.
See Also
MongoCursor!R find(R = Bson)()Queries all documents of the collection.
See Also
MongoCursor!R find(R = Bson)(FindOptions options)ditto