Author: Marinko Spasojevic

Getting Started with Entity Framework Core in ASP.NET Core – Models, DbContext, Configuration

In this article, we are going to get started with EF Core in ASP.NET Core. We are going to show you how to create model classes and how to create and prepare a context class. Additionally, we are going to talk about the DbContext class in detail and show you how it helps with the database modeling process. Overall we are going to go through a variety of basic but crucial information which will be valuable to you when starting with an ASP.NET Core project that uses EF Core as ORM (object relational mapper). You can download the source...

Read More

Consuming a GraphQL API with Angular

In the previous article, we have created an ASP.NET Core application to consume a GraphQL API. But we don’t have to use only ASP.NET Core app to consume a GraphQL API, we can do the same thing with the Angular application. To accomplish that, we are going to use the Apollo library which will help us in the process. We won’t dive deep into the Angular project development, for that, we have a great Angular Tutorial on that subject as well. Getting Started with GraphQL in ASP.NET Core Advanced GraphQL Queries, Error Handling, Data Loader GraphQL Mutations (POST, PUT,...

Read More

Consuming a GraphQL API with ASP.NET Core

In the previous article, we have finished creating mutations in the GraphQL application, thus finishing the GraphQL integration in ASP.NET Core Web API. In this article, we are going to consume GraphQL API by creating an ASP.NET Core app. To consume GraphQL API with the ASP.NET Core app, we are going to use the GraphQL.Client library which will help us in the process. We won’t dive deep into the ASP.NET Core logic, just as much as we need to create our consuming application. But if you want to read in great detail about ASP.NET Core project development you can...

Read More

GraphQL Mutations in ASP.NET Core

GraphQL mutations are actions which we use to Add, Update and Delete data from a database. Until now, we have been executing only GraphQL Queries (fetching data) but in this article, we are going to talk more about data mutations in GraphQL. Getting Started with GraphQL in ASP.NET Core Advanced GraphQL Queries, Error Handling, Data Loader GraphQL Mutations (POST, PUT, DELETE Actions) (Current Article) Consume GraphQL API with ASP.NET Core Consuming a GraphQL API with Angular This article is part of the series To download the source code, visit the GraphQL Mutations Source Code. For the complete navigation of...

Read More

Advanced GraphQL Queries, Error Handling, Data Loader

In the previous article, we have learned about the GraphQL integration with the ASP.NET Core application. We have created our first GraphQL query and fetched some data from the server side application. But we won’t stop on just basic queries. In this article, we are going to learn how to write advanced GraphQL queries and while doing that, we are going to show you how to handle errors and how to cache data inside a query. Furthermore, we are going to learn how to enhance our query (from a client side) with the named queries, aliases, arguments, and fragments....

Read More