Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Develop and Test GraphQL Server with GraphQL .NET & ASP .NET
Rating: 3.8 out of 5(11 ratings)
77 students

Develop and Test GraphQL Server with GraphQL .NET & ASP .NET

From complete basic of GraphQL using GraphQL NET
Created byKarthik KK
Last updated 9/2024
English
English [Auto],

What you'll learn

  • GraphQL Basic
  • GraphQL .NET Server Basic
  • GraphQL Testing with GraphQL Client
  • GraphQL Queries basic

Course content

4 sections22 lectures2h 15m total length
  • Introduction13:43

    Explore the basics of GraphQL, how it replaces REST APIs, and how to query a GraphQL server with a client using schemas, fields, fragments, and mutations.

  • Understanding GraphQL Queries (Fields/Variables/Arguments/Alias/Operation Name)12:59

    Explore GraphQL queries, covering fields, arguments, alias, operation name, and variables. See how aliases rename fields, operation names differentiate queries, and variables pass product ids in the playground.

  • Understanding GraphQL Queries (Mutations/Fragments/Directives)14:13

    Explore fragments, directives, and mutations in GraphQL with GraphQL .NET and ASP.NET, using reusability and conditional fields to create and query components and products.

  • Understanding GraphQL Types6:30

    Discover how GraphQL types define a strong schema, with scalar and object types like product and component, and learn how the schema enables cross-language code generation via co-generation tools.

  • Summary0:21

    Discover how GraphQL works, create basic GraphQL queries, and examine the basic schema types, setting the stage for the next section.

Requirements

  • Basic of ASP .NET
  • Basic of Entity Framework
  • Basic of WebAPIs

Description

This course Develop and Test GraphQL Server with GraphQL .NET & ASP .NET is focused on making anyone who has zero knowledge in GraphQL and make them understand the nitty-gritty details on developing GraphQL Server with GraphQL .NET and testing the GraphQL server using GraphQLClient .NET and WebApplicationFactory for integration testing.

As a part of this course, we will also do testing of application with XUnit as testing library along with GraphQL Client.

This course is split into the following sections for simplicity

  • Basics of GraphQL

    • Understanding Queries

    • Understanding Parameters

    • Understanding Arguments

    • Understanding Operation Name

    • Understanding Alias

    • Understanding Schema

    • Understanding Mutations

    • Understanding Fragments


  • Setting up ASP .NET WebAPI project with Entity Framework as ORM

    • Creating basic WebAPI project

    • Adding Entity Framework

    • Adding Data layer and controllers

    • Creating Repository pattern

    • Accessing data from Repository pattern for controllers


  • Developing GraphQL Server which supports

    • Creating Query

    • Creating Schema

    • Creating QueryTypes

    • Creating InputQueryTypes (for mutation)

    • Support for nested Query

    • Support of parameters/query arguments

    • Support for nested sub-queries

    • Support for Mutations


  • Testing GraphQL using GraphQL Client

    • Testing using XUnit

    • Unit Testing without HttpClient

    • Integration testing with TestServer and WebApplicationFactory

At the end of the course, you will understand how to work with GraphQL using GraphQL .NET and also you will understand how we perform Unit testing and Integration testing with the help of WebApplicationFactory and reduce the footprint of running the whole server and instead just run the test server to test the whole application in just couple of lines of code.


Who this course is for:

  • Developers
  • QA
  • Automation Test Engineers