method
App.SetPreference
Validate and persist a bounded preference value.
Arguments
| Argument | Type | Description |
|---|---|---|
ctx | context.Context | The ctx value. |
identity | *AuthIdentity | The identity value. |
key | string | The key value. |
value | json.RawMessage | The 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)Related types
AppA resolved application bound to operation services.
AuthIdentityAn exact authenticated collection and actor document.