Skip to content

Repository files navigation

An Api with GraphQL application

Technology and tool

  1. .NET 5
  2. GraphQL API
  3. HotChocolate
  4. Tool: VScode, SQL Server, Docker, Insomnia

Agenda

  1. CODING PART 1
  • Environment Setup
  • Project Setup
  • Setup SQL Server with Docker
  • Configuration & Dependency Injection
  • Set up our 1st Model
  • Setup DB Context & Connection String
  • Migrate to DB
  • Create GraphQL Query
  • Configuring GraphQL Services (Startup Class)
  • Configuring GraphQL in Request Pipeline ()
  • Querying our endpoint with Banana Cake Pop & Insomnia
  • Setting up and using GraphQL Voyager
  • Concurrent quering issue
  • Introducing the Pooled DbContext Factory
  1. CODING PART 2 - EXTENDING OUR QUERIES
  • Adding our 2nd Model
  • Update DBContext & Migrate
  • Querying with multi-model - using projection
  • Adding a Commands Query
  • Adding in-line documentation to our API
  • Annotation Vs Code First approaches
  • Adding a Platform Type with Resolver
  • Adding a Command Type with Resolver
  • Sorting & Filtering capabilities
  1. CODING PART 3 - MUTATIONS & SUBSCRIPTIONS
  • Introducing Mutations & Adding Platforms
  • Testing our Platform Mutation
  • Adding a Commands Mutation
  • Testing our Commands Mutation
  • Adding Subscriptions (Real-time events)
  • Testing our Subscription

Reference

GraphQL API with .NET 5 and Hot Chocolate Of Les Jackson

© 13/02/2021 | Write again code by Nguyen Nhut Hao and thanks for this video above from Les Jackson

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages