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.
Exact identities disambiguate multiple auth collections. Preferences are independent from content documents and never schema fields.
Related types
AppA resolved application bound to operation services.
AuthIdentityAn exact authenticated collection and actor document.