method
LocalAPI.Capabilities
Evaluate collection, document, and field access without side effects.
Arguments
| Argument | Type | Description |
|---|---|---|
ctx | context.Context | The ctx value. |
collection | string | The collection value. |
id | string | The id value. |
options | CapabilityOptions | The options value. |
Returns
The declared result.
(AccessCapabilities, error)How it works
No hooks, validation, or mutation run. Results are presentation hints only; every later operation re-authorizes transactionally.
Full signature
func (local *LocalAPI) Capabilities(
ctx context.Context,
collection,
id string,
options CapabilityOptions,
) (AccessCapabilities, error)Related types
LocalAPIIn-process content operations that share the REST authorization and lifecycle pipeline.
CapabilityOptionsSide-effect-free access evaluation input.
AccessCapabilitiesEvaluated operation and per-field permission booleans.