method
RiduClient.global
RiduClient.global<
Slug extends GlobalSlug<Config>,
const Options extends FindOptions<
GlobalSelectFor<Config, Slug>,
GlobalPopulateFor<Config, Slug>,
LocaleFor<Config>,
>
| undefined = undefined,
>(slug: Slug, options?: Options): Promise<GlobalQueryResult<Config, Slug, Options>>Read one global with a locale-, projection-, and population-dependent result.
Related types
GlobalSlugThe generated union of global slugs.
FindOptionsProjection, population, depth, and locale options for one document or global.
GlobalSelectForResolve a global projection type.
GlobalPopulateForResolve a global population type.
GlobalOutputForResolve a global output type.
GlobalAllLocalesOutputForResolve locale-keyed global output when generated, otherwise ordinary output.