| sidebar_position | 6 |
|---|---|
| description | Count API |
import StackBlitzGithub from '@site/src/components/StackBlitzGithub';
You can use the count method to count the number of records that match a query. It also allows to count non-null field values with an select clause.
To count relations, please use a find API with the special _count field as demonstrated in the Find documentation.