Error message in a grapqhl mutation
I have not a clue what can be wrong here, even after trying to understand what makes this error out in the graphql lib code.
Solution:Jump to solution
looking at the commit that adds in the bit causing the error https://github.com/ash-project/ash_graphql/commit/4bcea7846fbcd752bce94047135ed83780f26204 and it suggests that you should have
AshGraphql.Resource.Action
structs but you have Mutation
structs instead - so it might be defined in your schema incorrectly4 Replies
From type:
Used as such
I have identical code in another resource, only the argument input type differs
so it looks like
error_location
was added for generic actions as queries, but not as mutations
can you share how you've added that action to your graphql schemaSolution
looking at the commit that adds in the bit causing the error https://github.com/ash-project/ash_graphql/commit/4bcea7846fbcd752bce94047135ed83780f26204 and it suggests that you should have
AshGraphql.Resource.Action
structs but you have Mutation
structs instead - so it might be defined in your schema incorrectlyAhhhhh yes I am pointing a create at it
Thank you
I will make an issue to see if we can make this error message more meaningful