Author: Marinko Spasojevic

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

Getting Started with GraphQL in ASP.NET Core

In this article, we are going to learn how to set up GraphQL in ASP.NET Core application. We are going to use different third-party libraries to make this integration easier and will explain in detail how to use GraphQL elements (Type, Query, and Schema) to complete the integration process of GraphQL in ASP.NET Core. Getting Started with GraphQL in .NET Core (Current article) Advanced GraphQL Queries, Error Handling, Data Loader GraphQL Mutations (POST, PUT, DELETE Actions) 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,...

Read More