type

FieldAccessContext

Operation, actor, path, value, siblings, and locale supplied to a field rule.

Source ridu.go:79

Contextcontext.Context
Request cancellation and deadline context.
OperationOperation
Create, read, update, or delete.
CollectionIDschema.StableID
Stable identity of the containing collection.
GlobalIDschema.StableID
Stable identity of the containing global, when applicable.
IDstring
Current document ID; empty during create.
Pathstring
Authored field path.
RuntimePathstring
Concrete occurrence including array or block indexes.
Actor*store.Document
Authenticated actor, or nil.
ActorCollectionschema.CollectionSlug
The exact auth collection that owns Actor.
Datastore.Values
Incoming write values.
Valuestore.Value
Submitted or stored field value.
SiblingDatastore.Values
Detached nearest-object values.
Document*store.Document
Current document when available.
Original*store.Document
Document before update.
Local*LocalAPI
Nested transaction-scoped operations.
Localeschema.LocaleCode
Selected locale.
AllLocalesbool
Whether every locale is selected.