count static method

Map<String, Object> count(
  1. String field
)

Implementation

static Map<String, Object> count(String field) {
  return {
    '\$count': field,
  };
}