-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Hello!
I just cloned the repository, but the example query in the README is returning an error in GraphiQL.
To build the server, I:
- cloned the repository,
- ran
stack buildinside the repository, - ran
npm installinside the repository, - and finally ran
npm start.
The query in question is:
query GetDeity {
deity(name: "Morpheus") {
name
power
}
}which returns
{
"errors": [
{
"message": "Failure on Resolving Field \"deity\": DB Error: could not find entry for ID \"Morpheus\"",
"locations": [
{
"line": 2,
"column": 27
}
]
}
]
}The other endpoint is fine, that is:
query GetDeity {
deities {
name
power
}
}returns
{
"data": {
"deities": [
{
"name": "Morpheus",
"power": "Shape shifting"
},
{
"name": "Poseidon",
"power": "Storm"
},
{
"name": "Zeus",
"power": "thunder"
}
]
}
}Any idea what's going on here? Did I miss something setting up the server? If there's any info I can give that may help, just let me know!
Metadata
Metadata
Assignees
Labels
No labels