method
LocalAPI.Find
Find reads one document through the operation engine with a transport-owned projection and population plan.
Arguments
| Argument | Type | Description |
|---|---|---|
ctx | context.Context | The ctx value. |
collection | string | The collection value. |
id | string | The id value. |
options | FindOptions | The options value. |
Returns
The declared result.
(store.Document, error)Full signature
func (local *LocalAPI) Find(
ctx context.Context,
collection,
id 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.