Complete the code to define an argument named 'id' of type ID in a GraphQL field.
type Query { user([1]: ID!): User }The argument name should be 'id' to specify the user identifier.
Complete the code to define a GraphQL argument with a default value of 10 for 'limit'.
type Query { posts(limit: Int = [1]): [Post] }The default value for 'limit' is set to 10 to limit the number of posts returned.
Fix the error in the argument definition by completing the code correctly.
type Mutation { updateUser(id: [1], name: String): User }The 'id' argument should be of type 'ID!' to indicate a required unique identifier.
Fill both blanks to define a query with arguments 'first' and 'after' for pagination.
type Query { posts(first: [1], after: [2]): PostConnection }'first' is an integer specifying how many posts to fetch, and 'after' is a string cursor for pagination.
Fill all three blanks to define a mutation with arguments 'id', 'email', and 'active'.
type Mutation { updateUser(id: [1], email: [2], active: [3]): User }'id' is a required ID, 'email' is a string, and 'active' is a boolean indicating status.