{
“errors”: [
{
“message”: “Internal Server Error - a panic was trapped. This indicates a bug in the GraphQL server. A stack trace was logged. Please let us know by filing an issue with the stack trace.”
}
]
}
I am new to this but thought I would get past the graph QL equivalent of ‘hello world!’
Thanks for the post. I do agree that the error thrown should have been more verbose and pointed towards the fact that there is something wrong with the input provided to update mutation rather than panicking. I am accepting this panicking as a bug and it will be fixed to a more verbose error.
For the sake of completeness, This PR has fixed this behaviour on master branch. Later slash graphql and dgraph releases will also have support for coercing a single object to list.
The update mutation won’t cause panic and will update the node gracefully on using master or later releases.
This issue exists in v20.11 and prior releases. It has been fixed in master.
I have just verified the same and it is working fine on master as well as on Slash for me.
My Slash instance had v20.11.2-rc1-15-gc358c26e deployed.
Could you please check which Dgraph Version is running in your Slash backend by going to the Settings tab?
If it is prior to v20.11.2-rc1, then it makes sense that you encountered this issue, otherwise if you are still getting the same issue on v20.11.2-rc1, please share with us a set of reproducible steps and we will be happy to look into it.