I am building an Web API with .NET core using GraphQL and DocumentDb.
In theory, GraphQL is optimized the data is shipped across the network and thus avoid over-fetching data. But I recognize that the backend server and database is doing the extra unnecessary work (query the entire document) when querying the database.
The best strategy here is using Select() to specific properties we need to fetch. But I have no idea how to build the expression from client's query that so complex.
Any help really appreciated.
Thanks
