reym
CRUD/Schema/Field

@readonly

Use the @readonly directive to make a field read-only. This means that the field can only be read and not written.

Example

user.graphql
type User @crudType {
    name: String! @readonly
}

In this case, the name field will be read-only.

On this page