Q12: What is an Input Object type and how does it differ from an Object type?

Difficulty:EasyTopic:Schema

input object types define complex object structures passed as arguments into queries or mutations.

Differences:

  • Object Types (type): Define output structures fetched from the server. They can contain fields with arguments.
  • Input Types (input): Define input structures sent to the server. Fields cannot accept arguments or contain output object types.
Key Takeaways
  • input types define structured arguments passed to operations.
  • input fields cannot have arguments or reference standard output type entities.
Knowledge Check

Can an `input` type field contain field arguments?