Strict Mode

Strict Mode

If you enable Strict Mode on your access token only permissions with active required validation can be chosen from the permissions list. 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