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.

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

@param collection
The collection value.
@param id
The id value.
@param options
The options value.
@returns
The declared result.

Related types

  • CollectionSlug

    The generated union of collection slugs.

  • FindOptions

    Projection, population, depth, and locale options for one document or global.

  • SelectFor

    Resolve a collection projection type.

  • PopulateFor

    Resolve a collection population type.

  • OutputFor

    Resolve a collection document output type.

  • AllLocalesOutputFor

    Resolve locale-keyed collection output when generated, otherwise ordinary output.