count method

PostgrestFilterBuilder<int> count([
  1. CountOption option = CountOption.exact
])

Only performs a count query on the table or view.

int count = await supabase.from('users').count();

Implementation

PostgrestFilterBuilder<int> count([CountOption option = CountOption.exact]) {
  return PostgrestFilterBuilder<int>(_copyWithType(
    method: METHOD_HEAD,
    count: option,
  ));
}