Complete the code to define a GraphQL schema with a Query type.
type Query { hello: [1] }The String type is the correct GraphQL scalar type for text values.
Complete the code to define a schema with a Query type that returns a list of strings.
type Query { names: [[1]] }The list contains String elements, so the type inside brackets is String.
Fix the error in the schema by completing the type definition for a User object.
type User { id: ID! name: [1]! }The name field should be a non-nullable String type.
Fill both blanks to define a schema with a Query that returns a User by ID.
type Query { user(id: [1]!): [2] }The id argument should be of type ID! and the return type is User.
Fill all three blanks to define a mutation that creates a User with a name and returns the User.
type Mutation { createUser(name: [1]!): [2] } type User { id: [3]! name: String! }The name argument is a non-nullable String, the mutation returns a User, and the User's id is a non-nullable ID.