Author: Marinko Spasojevic

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 Using Angular to Consume GraphQL API This article is part of the series To download the source code,...

Read More

C# Design Patterns – Strategy

The Strategy design pattern is a behavioral design pattern which allows us to define different functionalities, put each functionality in a separate class and make their objects interchangeable. In other words, we have a main Context object that holds a reference towards a Strategy object and delegates it by executing its functionality. If we want to change the way the Context performs its work, we can just replace the current Strategy object with another one. Builder Design Pattern and Fluent Builder Fluent Builder Interface With Recursive Generics  Faceted Builder  Factory Method  Singleton  Adapter Composite Decorator Command Strategy (Current article)...

Read More

C# Design Patterns – Command

The Command pattern is a behavioral design pattern that we can use to turn a request into an object which contains all the information about the request. The Command design pattern is quite popular in C#, especially when we want to delay or queue a request’s execution or when we want to keep track of our operations. Furthermore, this possibility to keep track of our operations gives us the opportunity to undo them as well. Builder Design Pattern and Fluent Builder Fluent Builder Interface With Recursive Generics  Faceted Builder  Factory Method  Singleton  Adapter Composite Decorator Command (Current article) Strategy...

Read More

C# Design Patterns – Decorator

In this article, we are going to talk about another structural C# design pattern, the Decorator Design Pattern. We are going to learn, how to implement this pattern in our project and what we can get by doing that. Builder Design Pattern and Fluent Builder Fluent Builder Interface With Recursive Generics  Faceted Builder  Factory Method  Singleton  Adapter Composite Decorator (Current article) Command Strategy This article is part of the series The source code is available at the Decorator Design Pattern – Source Code. For the main page of this series check out C# Design Patterns. This article is divided...

Read More