GraphQL Day 003 : Defining Mutations

Until now, we dealt with, what we could call a readonly system. In other words, we defined queries which does not alter the system. But what if we intent to alter the system, for example, we want to add a new record. This is where mutation comes into the play. The mutation type in GraphQL is used … Continue reading GraphQL Day 003 : Defining Mutations

GraphQL Day 002 : Type Definition basics

Earlier in this series, we will created our first GraphQL Server. If you had noticed we defined our data types as plain C# classes. This was a simple example of Annotation based approach, though actually we did not use any annotation. However, things can change when one needs to expose another query resolver. Annotation Based … Continue reading GraphQL Day 002 : Type Definition basics

GraphQL Day 001: Creating your first GraphQL server with HotChocolate

In the earlier part of the series, we familiarized ourselves with the different building blocks of GraphQL. We also understood the need of GraphQL and how it fares compared to REST endpoints. In this post, we will create our first GraphQL server. For sake of this example, we will be using the HotChocolate library for building our … Continue reading GraphQL Day 001: Creating your first GraphQL server with HotChocolate