Optimizing backends using GraphQL
GraphQL effectively eliminates transfer of redundant data when using APIs. It is also possible to prevent over-fetching data from a database. In order to do that, we need to extract fields coming from GraphQL and dynamically build a query. I am going to extend the source code used in my first post Using GraphQL in .NET ecosystem to show how you can achieve it in .NET environment. In order to...
Using GraphQL in .NET ecosystem
GraphQL could be seen as an alternative to REST API. It’s been invented by Facebook in 2012 and now it is adopted by such giants as Twitter and Github. I am not going to discuss the benefits of GraphQL or its difference with REST API. Instead, I will focus on how you can apply GraphQL queries in practice using .NET ecosystem.This post is split into two parts. In part one we will setup the...