Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 1 KB

File metadata and controls

42 lines (30 loc) · 1 KB

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