method

App.SetPreference

Validate and persist a bounded preference value.

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
identity*AuthIdentityThe identity value.
keystringThe key value.
valuejson.RawMessageThe value value.

Returns

The declared result.

(json.RawMessage, error)

How it works

Exact identities disambiguate multiple auth collections. Preferences are independent from content documents and never schema fields.

Full signature

func (application *App) SetPreference( ctx context.Context, identity *AuthIdentity, key string, value json.RawMessage, ) (json.RawMessage, error)

Source core/preferences.go:43

Related types

  • App

    A resolved application bound to operation services.

  • AuthIdentity

    An exact authenticated collection and actor document.