__fields_args__ = convert_case does not seem to work on MutationType #923
-
Hi there! First of all, love the concept behind graphQL modules and apologies for the confusion, I'm sure I'm missing something trivial but I've tried making the examples work to no avail. I have a simple mutation for updating a user flag, very much like the example in your documentation. Here it is:
I run this mutation from graphQL playground as follows:
and I get the error message:
Change the kwarg Additionally, inheriting from the ObjectType instead of the MutationType and it also works fine! What am I missing? Looking at the code for MutationType, I don't see any mention of And what does MutationType add, if you can run your mutation using the ObjectType anyway (the same as you do for a query)? Thanks so much in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
Hey! In case of Thanks for pointing this out. I'll update the reference tomorrow. |
Beta Was this translation helpful? Give feedback.
-
I've did a deep dive into the code and it seems that |
Beta Was this translation helpful? Give feedback.
-
@LawrenceHunt I've released 0.6.0 with the fix. |
Beta Was this translation helpful? Give feedback.
Hey!
In case of
MutationType
this option is called__args__
. I see that reference is wrong here:https://github.com/mirumee/ariadne-graphql-modules/blob/main/ariadne_graphql_modules/mutation_type.py#L19
Thanks for pointing this out. I'll update the reference tomorrow.