GraphQL schema vocabulary

  • Type! — non-nullable; server guarantees a value (never null)
  • Query type — read operations; Mutation — write operations; Subscription — real-time events
  • [Type!]! — non-nullable list of non-nullable items (always returns a list, even empty)
  • Input type — argument object for mutations: createUser(input: CreateUserInput!)
  • Resolver — the function that fetches the data for a field

Question 0 of 5

A GraphQL schema includes: type User { id: ID! name: String! email: String age: Int }. What does the ! symbol mean?