Method MongoCollection.find

Queries the collection for existing documents.

If no arguments are passed to find(), all documents of the collection will be returned.

Prototypes

MongoCursor find(T, U)(T query, U returnFieldSelector, QueryFlags flags = QueryFlags.None, int num_skip = 0, int num_docs_per_chunk = 0)(
  ReturnTypeString.T query,
  U returnFieldSelector,
  QueryFlags flags,
  int num_skip,
  int num_docs_per_chunk
);

MongoCursor find(T)(T query)(
  ReturnTypeString.T query
);

MongoCursor find()()();

Throws

Exception if a DB communication error or a query error occured.

See Also

http://www.mongodb.org/display/DOCS/Querying

Authors

Sönke Ludwig

Copyright

© 2012 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.