graph ql code auto generation .net core hot chocolate

graph ql code auto generation .net core hot chocolate


0

I am writing an API to fetch data from sql db(about 120+ tables). I have generated model class files automatically. Is there any automatic way to generate Service and Query class files? Right now I am writing these IService and class files.
enter image description here

enter image description here

Share
Improve this question

2

  • Yes, it's documented in EF integration, and the entire idea of a Database API is simply wrong. GraphQL isn't a Database API. Exposing tables through HTTP is actually a bad practice that prevented the adoption of Microsoft's OData. When clients access arbitrary tables and columns, there's no way to optimize the database, add proper indexes or change its design to handle problems.

    – Panagiotis Kanavos

    1 hour ago


  • In GraphQL the Query is a client application's query, not a table specification. It specifies what the client application wants to read from the system, and the shape the application expects. Autogenerating queries without knowing what the application wants will either force you to reshape the data on the client, or rewrite the query. And possibly load unwanted data as well

    – Panagiotis Kanavos

    53 mins ago


Load 6 more related questions


Show fewer related questions

0

Reset to default



Browse other questions tagged

or ask your own question.

Leave a Reply

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