method

App.SetPreference

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

Validate and persist a bounded preference value.

Source core/preferences.go:43

@param ctx
The ctx value.
@param identity
The identity value.
@param key
The key value.
@param value
The value value.
@returns
The declared result.

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

Related types

  • App

    A resolved application bound to operation services.

  • AuthIdentity

    An exact authenticated collection and actor document.