GraphQL - Mutations
You wrote this input type:
and mutation:
But when you run the mutation, you get an error: "Variable '$input' expected value of type 'UserInput!' but got null." What is the likely cause?
input UserInput { name: String, age: Int }and mutation:
mutation createUser($input: UserInput!) { addUser(input: $input) { id } }But when you run the mutation, you get an error: "Variable '$input' expected value of type 'UserInput!' but got null." What is the likely cause?
