method
RiduClient.find
RiduClient.find<
Slug extends CollectionSlug<Config>,
const Options extends FindOptions<
SelectFor<Config, Slug>,
PopulateFor<Config, Slug>,
LocaleFor<Config>,
>
| undefined = undefined,
>(
collection: Slug,
id: string,
options?: Options,
): Promise<CollectionQueryResult<Config, Slug, Options>>Find one authorized document with a locale-, projection-, and population-dependent result.
Related types
CollectionSlugThe generated union of collection slugs.
FindOptionsProjection, population, depth, and locale options for one document or global.
SelectForResolve a collection projection type.
PopulateForResolve a collection population type.
OutputForResolve a collection document output type.
AllLocalesOutputForResolve locale-keyed collection output when generated, otherwise ordinary output.