Skip to content

FieldAccess

FieldAccess = object

Defined in: packages/schema/src/access/types.ts:54

A field’s own rules, .access({ read, create, update }) on the field; an operation without one follows the resource.

optional create?: FieldRule

Defined in: packages/schema/src/access/types.ts:58

Whether the caller may set the field when creating a record.


optional read?: FieldRule

Defined in: packages/schema/src/access/types.ts:56

Whether the caller may see the field.


optional update?: FieldRule

Defined in: packages/schema/src/access/types.ts:60

Whether the caller may change the field when updating a record.