Skip to content

Repository files navigation

GraphQL API

An example repository for setting up GraphQL in ASP.NET Core with HotChocolate.

Schema

The schema provided by this GraphQL API.

schema {
query: Query
mutation: Mutation
}
type Mutation {
addProduct: Product
}
type Product {
createdAt: DateTime!
id: Uuid!
price: Int!
inStock: Boolean!
}
type Query {
product(id: Uuid!): Product
products: [Product]
}
"The `DateTime` scalar represents an ISO-8601 compliant date time type."
scalar DateTime
scalar Uuid

Links

This repository is intended to act as a reference for a series of blog posts that cover GraphQL, HotChocolate, and ASP.NET Core 2.1.

  1. GraphQL in ASP.NET Core
  2. Nested Resolvers in GraphQL and ASP.NET Core

About

An example repository for setting up a GraphQL API using HotChocolate and ASP.NET Core

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages