Complete the code to define a GraphQL type for a User with an ID field.
type User { id: [1] }The ID! type is used for unique identifiers and the exclamation mark means it is required.
Complete the code to add a name field of type String to the User type.
type User { name: [1] }The String! type means the name is a required string field.
Fix the error in the schema by completing the field type for age.
type User { age: [1] }The Int! type is used for required integer fields like age.
Fill both blanks to define a Query type with a user field returning a User by ID.
type Query { user(id: [1]): [2] }The user query takes a required ID! argument and returns a User type.
Fill all three blanks to define a Mutation type with createUser taking name and age and returning User.
type Mutation { createUser(name: [1], age: [2]): [3] }The createUser mutation takes a required String! name and a required Int! age, and returns a User.