documentsCount method
Future<CollectionPropertiesResponse>
documentsCount(
- String collectionName, {
- Transaction? transaction,
Returns number of documents in a collection https://www.arangodb.com/docs/3.4/http/collection-getting.html#return-number-of-documents-in-a-collection
Implementation
Future<CollectionPropertiesResponse> documentsCount(
String collectionName, {
Transaction? transaction,
}) async {
final answer = await _httpGet(
['_db', db, '_api', 'collection', collectionName, 'count'],
headers: _addTransactionHeader(transaction),
);
final response = _toCollectionPropertiesResult(answer);
return response;
}