This article will walk you through the steps to create a basic GraphQL API on ASP.NET Core using [GraphQL for .NET], [Entity Framework Core], [Autofac], and the [Repository design pattern]. I chose the tech stack for the sample application based on the popularity of the frameworks and patterns. You can substitute the frameworks or libraries with equivalent components in your implementation.
Application: Movie Reviews
We will create an API that presents a movie and its reviews. In GraphQL, queries are used to read data, and mutations are used to create, update and delete data. To explore the CRUD operations on data, we will create two GraphQL operations as follows:
#graphql #graphql.server #entity framework core #set up asp.net core #asp.net core