method
RiduClient.find
Find one authorized document with a locale-, projection-, and population-dependent result.
Arguments
| Argument | Type | Description |
|---|---|---|
collection | Slug | The collection value. |
id | string | The id value. |
options | Options | | The options value. |
Returns
The declared result.
Promise<LocaleResult<ApplySelect<ApplyPopulate<OutputFor<Config, Slug>, OptionProperty<Options, "populate">, never>, OptionProperty<Options, "select">>, ApplySelect<ApplyPopulate<AllLocalesOutputFor<Config, Slug>, OptionProperty<Options, "populate">, LocaleFor<Config>>, OptionProperty<Options, "select">>, Options>>Full signature
RiduClient.find<
Slug extends CollectionSlug<Config>,
const Options extends FindOptions<
SelectFor<Config, Slug>,
PopulateFor<Config, Slug>,
LocaleFor<Config>,
CollectionDraftsFor<Config, Slug>,
>
| undefined = undefined,
>(
collection: Slug,
id: string,
options?: Options,
): Promise<CollectionQueryResult<Config, Slug, Options>>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.