vuvu
vuvu

Reputation: 5338

What is the exclamation mark for after the variable?

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
        }
      }
    }

Upvotes: 0

Views: 510

Answers (1)

Flo
Flo

Reputation: 986

It means it's non-nullable.

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

Upvotes: 1

Related Questions