An example repository for setting up GraphQL in ASP.NET Core with HotChocolate.
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
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.