GraphQL Best Practise API Communication [closed]

I have an .Net Application which uses a graphQL API for some business logic. The schema is really big and so are the queries. I auto generated the graphql schema into c# classes which worked really well. But my Queries are equally big and I dont know how to store or build them besides simple strings. One of my querys is now over 500 lines.

Are there any good GraphQL Libaries that handle building the actual Query with an object approch?
All I could find still use the query as plain string.

Thanks!

I used an string builder of my own. But it really soon got troublesome and I was looking for better solutions online without much luck.

  • You should add info on how you’re actually consuming the API. Are you consuming it through .NET as well? – If so, strings is the way to go, AFAIK.

    – 

Leave a Comment