mirror of https://gitee.com/bigwinds/arangodb
17 lines
365 B
Markdown
17 lines
365 B
Markdown
|
|
|
|
@brief counts the number of documents in a result set
|
|
`collection.count()`
|
|
|
|
Returns the number of living documents in the collection.
|
|
|
|
**Note**: this result may be slightly off when using the RocksDB storage engine.
|
|
|
|
@EXAMPLES
|
|
|
|
@EXAMPLE_ARANGOSH_OUTPUT{collectionCount}
|
|
~ db._create("users");
|
|
db.users.count();
|
|
~ db._drop("users");
|
|
@END_EXAMPLE_ARANGOSH_OUTPUT
|