method
RiduClient.global
Read one global with a locale-, projection-, and population-dependent result.
Arguments
| Argument | Type | Description |
|---|---|---|
slug | Slug | The slug value. |
options | Options | | The options value. |
Returns
The declared result.
Promise<LocaleResult<ApplySelect<ApplyPopulate<GlobalOutputFor<Config, Slug>, OptionProperty<Options, "populate">, never>, OptionProperty<Options, "select">>, ApplySelect<ApplyPopulate<GlobalAllLocalesOutputFor<Config, Slug>, OptionProperty<Options, "populate">, LocaleFor<Config>>, OptionProperty<Options, "select">>, Options>>Full signature
RiduClient.global<
Slug extends GlobalSlug<Config>,
const Options extends FindOptions<
GlobalSelectFor<Config, Slug>,
GlobalPopulateFor<Config, Slug>,
LocaleFor<Config>,
GlobalDraftsFor<Config, Slug>,
>
| undefined = undefined,
>(slug: Slug, options?: Options): Promise<GlobalQueryResult<Config, Slug, Options>>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.