[c-sharp-operations] custom Query root type is not supported #8393
-
I am fairly new to GraphQL in general, but I am having the hardest time getting queries written in a way that the c-sharp-operations code generator will work. Even on the most basic of queries that work when querying the endpoint but won't work for codegen:
This query results in an error during codegen:
My configuration file looks like the following:
I have tried using a fragment instead to represent the fields, but I get the same error. As soon as I delete the query though the other graphql mutations that I have get generated and they work as expected. This also works if I turn off |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Beta Was this translation helpful? Give feedback.
-
Hi @joshlrogers, It seems like this plugin does not support setting a custom Query root type for now. In the meantime, if you are willing to take a look, feel free to start a PR; I'll be happy to help you make it move forward 👀 |
Beta Was this translation helpful? Give feedback.
Hi @joshlrogers,
It seems like this plugin does not support setting a custom Query root type for now.
I'll add it to my todolist.
In the meantime, if you are willing to take a look, feel free to start a PR; I'll be happy to help you make it move forward 👀