Error Message: “__typename was not executed because no suitable resolver could be found - this indicates a resolver or validation bug. Please let us know by filing an issue.”
this error message occurs if one tries to include __typename under mutation.
What version of Dgraph are you using?
v20.11.0
Have you tried reproducing the issue with the latest release?
I think this is the latest release
What is the hardware spec (RAM, OS)?
RAM: 15GB
OS: Ubuntu 20.04.1 LTS
Steps to reproduce the issue (command/config used to run Dgraph).
mutation:
mutation addTest($input: [AddTestInput!]!) {
__typename <- this one
addTest(input: $input) {
__typename
test {
__typename
name
}
}
}
query variables:
{
"input": [
{
"name": "john"
}
]
}
schema type:
type Test {
name: String!
}
result:
{
"errors": [
{
"message": "__typename was not executed because no suitable resolver could be found - this indicates a resolver or validation bug. Please let us know by filing an issue."
},
{
"message": "Mutation addTest was not executed because of a previous error.",
"locations": [
{
"line": 3,
"column": 3
}
]
}
],
.
.
.
Hello @JatinDevDG,
thank your for your response.
If you know I’d like to know if that is a deliberate design decision or just so happens to be,
as I can get the __typename of a query just fine.
The reason this is such a huge problem at the moment, is the
main flutter library for graphql by default puts the __typename also under mutations.
This seems to be an issue purely with dgraph, as other have not mentioned such an issue.
Because I quite like working with the library and dgraph as both are awesome implementations imo, I’d like to resolve this issue to limit the entry barrier for new users that do not want to deviate from the default path of the library.
This is awesome news. Thanks to you and the team.
I’d apprechiate it if you post here, when the solution is implemented, so I can close the librarys github issue accordingly.
Till then, thanks again.
I have the same issue but with query now.
OperationException(linkException: null, graphqlErrors: [GraphQLError(message: Operations not allowed – [__typename], locations: null, path: null, extensions: null)])