GraphQL Mutations in ASP.NET Core

This post is about GraphQL in ASP.NET Core with EF Core. In this post we will explore how to implement mutations using ASP.NET Core. Mutations help you to update the data in the database. Here is the Mutation class. In this class, we are adding the link object to database...


Azure Functions - Could not load file or assembly System.Text.Encoding.CodePages

This post is about how to fix the exception Could not load file or assembly System.Text.Encoding.CodePages when you’re using any HTML parser in Azure Functions. Recently while working on Azure Static Web App, I faced an issue like this. I created an Azure Function in Dotnet, which helps to parse...


Working with model validation in Minimal APIs

This post is about implementing model validation in ASP.NET Core Minimal APIs. Minimal APIs do not come with any built-in support for validation. In this post we will explore how to build one and we explore will use some other libraries which can be used to implement validations. You can...


GraphQL multiple requests and EF Core DbContext

GraphQL support multiple operations in a single query. So that you can query multiple objects in a single request. Here is an example. query { a:links { title url description imageUrl } b:links { title url description imageUrl } c:links { title url description imageUrl } } In this query...


GraphQL in ASP.NET Core with EF Core

This post is about GraphQL in ASP.NET Core with EF Core. In the earlier post I discussed about integrating GraphQL in ASP.NET Core with HotChocolate. In this post I will discuss about how to use GraphQL on top EF Core. First I will be adding nuget packages required to work...


Getting started with GraphQL in ASP.NET Core

This post is about GraphQL in ASP.NET Core. GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data. GraphQL provides a complete and understandable description of the data in your API, gives clients the power to ask for exactly what they need...


Access data with managed identity - Azure App Service

This post is about connecting and accessing data from SQL Service using Azure App Service Managed Identity feature. Azure SQL supports Azure AD authentication, which means it also supports the Managed Identity feature of Azure AD. With Managed Identity, we no longer need the User Id and Password as part...