Function MongoCollection.count

Counts the results of the specified query expression.

Throws Exception if a DB communication error occured.

Prototype

ulong count(T)(
  T query
);

See Also

count%28%29}}">http://www.mongodb.org/display/DOCS/Advanced+Queries#AdvancedQueries-{{count%28%29}}

Authors

Sönke Ludwig

Copyright

© 2012-2014 RejectedSoftware e.K.

License

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