type
Access
Access configures who may create, read, or update a field value. Assign it with a concrete field's Access method; an omitted rule leaves that operation unrestricted. Access replaces the field's complete policy group, while RestrictAccess adds only the supplied rules and requires both old and new rules to allow the operation.
Properties
| Property | Type | Description |
|---|---|---|
Create | AccessRule | Create controls whether the field may be supplied during document creation. |
Read | AccessRule | Read controls whether the field is included in API and admin responses. |
Update | AccessRule | Update controls whether the field may be changed on an existing document. |
Full signature
type Access struct {
// Create controls whether the field may be supplied during document creation.
Create AccessRule
// Read controls whether the field is included in API and admin responses.
Read AccessRule
// Update controls whether the field may be changed on an existing document.
Update AccessRule
}