When I run my elixir graphql api project, it goes to the server without error, but why am I not getting any response when entering the data?
{
book(id: 1){
position
}
}
Error typing id
SyntaxError: Unexpected token < in JSON at position 0
{
book{
position
}
}
error when not typing id
{
"errors": [
{
"locations": [
{
"column": 3,
"line": 2
}
],
"message": "In argument \"id\": Expected type \"Int!\", found null."
}
]
}