Skip to content

havotto/AspCoreGraphQL-Demo

Repository files navigation

ASP.NET Core 3.1 GraphQL demo with Hot Chocolate library

How to test

Install .NET Core SDK 3.1: https://dotnet.microsoft.com/download/dotnet-core/3.1

In the project root directory execute this command: dotnet watch run

Open the GraphQL playground at to execute queries: http://localhost:5000/graphql/playground

Used libraries

  • ASP.NET Core 3.1
  • EF Core 3.1
  • SQLite
  • HotChocolate 10.4.0-rc.0

Domain model

Post, Comment, Tag

Sample queries

Comments with filter & sort

query {
  comments(
    order_by: { id: ASC }, 
    where: { AND: [{ text_starts_with: "Post2" }, {id_lt: 4}] }) {
    id
    text
  }
}

About

ASP.NET Core 3.1, EF Core 3.1, SQLite, GraphQL.NET / HotChocolate

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages