vibe.d beta banner
get vibe.d
0.10.1

Asynchronous I/O that doesn’t get in your way, written in D

Struct CountOptions

struct CountOptions ;

Fields

NameTypeDescription
collation std.typecons.Nullable!(vibe.db.mongo.collection.Collation)Collation allows users to specify language-specific rules for string comparison, such as rules for letter-case and accent marks.
hint std.typecons.Nullable!(vibe.data.bson.Bson)The index to use. Specify either the index name as a string or the index key pattern.
limit std.typecons.Nullable!(long)The maximum number of documents to return.
maxTimeMS std.typecons.Nullable!(long)The maximum amount of time to allow the query to run.
readConcern std.typecons.Nullable!(vibe.db.mongo.collection.ReadConcern)Specifies the read concern. Only compatible with a write stage. (e.g. $out, $merge)
skip std.typecons.Nullable!(long)The number of documents to skip before returning.

Methods

NameDescription
maxTime (d) The maximum amount of time to allow the query to run.

See Also

https://www.mongodb.com/docs/manual/reference/command/count/ and https://www.mongodb.com/docs/manual/reference/method/db.collection.countDocuments/

Standards

https://github.com/mongodb/specifications/blob/525dae0aa8791e782ad9dd93e507b60c55a737bb/source/crud/crud.rst#id16

Authors

Jan Jurzitza

Copyright

© 2022 Jan Jurzitza

License

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