Complete the code to define a GraphQL error type with a message field.
type Error { message: [1] }The message field should be a non-nullable string to hold error messages.
Complete the code to define a GraphQL query that returns a list of errors.
type Query { errors: [[1]!]! }The query returns a non-nullable list of non-nullable Error objects.
Fix the error in the mutation definition to accept an error message as input.
type Mutation { addError(message: [1]): Error }The message argument should be a string to accept text input.
Fill both blanks to define an input type for error classification with a code and message.
input ErrorInput { code: [1] message: [2] }The code is a non-nullable integer and message is a non-nullable string.
Fill all three blanks to define a mutation that accepts ErrorInput and returns an Error.
type Mutation { createError(input: [1]): [2] }The mutation takes a non-nullable ErrorInput and returns a non-nullable Error.