method
LocalAPI.Global
Global reads a singleton with transport-owned projection and population through the ordinary operation engine.
Arguments
| Argument | Type | Description |
|---|---|---|
ctx | context.Context | The ctx value. |
slug | string | The slug value. |
options | FindOptions | The options value. |
Returns
The declared result.
(store.Document, error)Full signature
func (local *LocalAPI) Global(
ctx context.Context,
slug string,
options FindOptions,
) (store.Document, error)Related types
LocalAPIIn-process content operations that share the REST authorization and lifecycle pipeline.
FindOptionsProjection, population, authorization, draft, trash, and locale controls for one read.
DocumentA stored document with status and version metadata.