Tried to use slash today, got this error for reasons I could not understand.
Could somebody point out what I’m doing wrong., thanks in advance.
The Schema
"""
This is a User of the Application
"""
type User {
id: ID!
name: String!
}
The Mutation
mutation {
addUser(input: {
name: "Preet"
}) {
user {
id
name
}
}
}
The error
{
"errors": [
{
"message": "Value provided {name:\"Preet\"} is incompatible with expected type [AddUserInput!]!",
"locations": [
{
"line": 2,
"column": 18
}
]
}
]
}