method
RiduClient.count
RiduClient.count<Slug extends CollectionSlug<Config>>(
collection: Slug,
options?: Pick<
ListOptions<WhereFor<Config, Slug>, never, never, LocaleFor<Config>>,
"where" | "trash" | "locale" | "fallbackLocale" | "signal" | "headers",
>,
): Promise<CountEnvelope>Count authorized documents matching a typed filter.
Related types
CollectionSlugThe generated union of collection slugs.
ListOptionsTyped filtering, projection, population, sorting, pagination, locale, and trash options.
WhereForResolve a collection filter type.
CountEnvelopeA count response.