Strict Mode
Strict mode enforces stricter validation and adherence to the schema. You can enable strict mode for your schema on an access token.
If you enable strict mode on your access token only permissions with active required validation can be chosen from the permissions list. Take note of the workflow stage for the required validation.
In contrast to normal operation Strict Mode affects the associated GraphQL type.
For example all required text fields in your schema will
result in the GraphQL type String!
, instead of String
. When the exclamation mark is omitted then it means
the field is a string that will never be null.
In other words, code generators produce the TypeScript type of string
instead of string | null | undefined
.
This makes the front end code cleaner and more consistent.
Was this article helpful?
We’d love to learn from your feedback