method

RiduClient.count

Count authorized documents matching a typed filter.

Arguments

ArgumentTypeDescription
collectionSlugThe collection value.
optionsPick<ListOptions<WhereFor<Config, Slug>, never, never, LocaleFor<Config>, boolean>, "locale" | "fallbackLocale" | "signal" | "headers" | "where" | "trash"> | undefinedThe options value.

Returns

The declared result.

Promise<CountEnvelope>

Full signature

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>

Source packages/sdk/src/types.ts:1085

Related types