Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 970 Bytes

get-collection-statistics.dotnet.markdown

File metadata and controls

30 lines (18 loc) · 970 Bytes

Operations: How to Get Collection Statistics

GetCollectionStatisticsOperation is used to return total count of documents, conflicts and document count in each collection.

Syntax

{CODE stats_1@ClientApi\Operations\CollectionStats.cs /}

{CODE stats_2@ClientApi\Operations\CollectionStats.cs /}

Return Value
CountOfDocuments int Total documents count
CountOfConflicts int Total conflicts count
Collections Dictionary<string, long> Dictionary which maps collection name to document count

Example

{CODE stats_3@ClientApi\Operations\CollectionStats.cs /}

Related Articles

Operations

FAQ