Skip to content

Instantly share code, notes, and snippets.

@hansamann
Created April 30, 2019 14:24
Show Gist options
  • Save hansamann/d98b9d802ad90d45b5046df907c03db0 to your computer and use it in GitHub Desktop.
Save hansamann/d98b9d802ad90d45b5046df907c03db0 to your computer and use it in GitHub Desktop.
Example GraphQL Schema
type Query {
category(categoryId: String) : Category
}
type Category {
id: ID
name: String
subcategories: [Category]
products: [Product]
}
type Product {
id: ID
name: String
description: String
manufacturer: String
price: String
images(type: String, format: String): [Image]
categories: [Category]
}
type Image {
format: String
type: String
url: String
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment