Created
April 30, 2019 14:24
-
-
Save hansamann/d98b9d802ad90d45b5046df907c03db0 to your computer and use it in GitHub Desktop.
Example GraphQL Schema
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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