05 / 10

What are Type modifiers?

when we use named types in a schema (or in query variable declarations) you can apply additional type modifiers that will affect the meaning of those values.

This allows you to:
  1. 1

    Non-Null: by adding an exclamation mark (!) after the type name.

  2. 2

    List: by wrapping the type in square brackets, [ and ].

javascript