GraphQL Best Practise API Communication

GraphQL Best Practise API Communication


0

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.

Share
Improve this question

New contributor

dahmsk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

1

  • 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.

    – JTinkers

    29 mins ago


Load 6 more related questions


Show fewer related questions

0

Reset to default



Leave a Reply

Your email address will not be published. Required fields are marked *