method

RiduClient.global

Read one global with a locale-, projection-, and population-dependent result.

Arguments

ArgumentTypeDescription
slugSlugThe slug value.
optionsOptions | undefinedThe 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>>

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

Related types