type

ComputedContext

type ComputedContext struct { Context context.Context Operation Operation CollectionID schema.StableID GlobalID schema.StableID Actor *store.Document // ActorCollection identifies the exact auth collection that owns Actor. ActorCollection schema.CollectionSlug Document store.Document Local *LocalAPI Locale schema.LocaleCode AllLocales bool }

Runtime input for one virtual field resolver.

Source core/computed.go:12

Contextcontext.Context
Carries request cancellation and deadlines.
OperationOperation
The current create, read, update, or delete operation.
CollectionIDschema.StableID
The containing collection identity when applicable.
GlobalIDschema.StableID
The containing global identity when applicable.
Actor*store.Document
The authenticated actor, or nil for an anonymous request.
ActorCollectionschema.CollectionSlug
Identifies the exact auth collection owning Actor.
Documentstore.Document
The result document whose virtual value is being resolved.
Local*LocalAPI
Enters ordinary access-controlled content operations.
Localeschema.LocaleCode
The selected content locale.
AllLocalesbool
Reports that locale-keyed values were requested.