0

I'm trying to understand the snipppet from graph ql appollo tutorial. What is the exclamation mark for after the variable? ID!

  query GetLaunchById($id: ID!) {
      launch(id: $id) {
        id
        rocket {
          id
          type
        }
      }
    }
vuvu
  • 4,886
  • 12
  • 50
  • 73
  • 3
    Duplicate of [What is an exclamation point in graphql?](https://stackoverflow.com/questions/50684231/what-is-an-exclamation-point-in-graphql) – Daniel Rearden Apr 26 '19 at 14:55

1 Answers1

1

It means it's non-nullable.

See : https://graphql.org/learn/schema/

Flo
  • 936
  • 1
  • 8
  • 19