documentsCount method

Future<CollectionPropertiesResponse> documentsCount(
  1. String collectionName, {
  2. Transaction? transaction,
})

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;
}