Skip to content

Instantly share code, notes, and snippets.

@kaka2507
Created January 16, 2019 08:01
Show Gist options
  • Save kaka2507/f130b5ae11db5a4607e3ae3ebe9a8fa5 to your computer and use it in GitHub Desktop.
Save kaka2507/f130b5ae11db5a4607e3ae3ebe9a8fa5 to your computer and use it in GitHub Desktop.
schema {
query: Query
}
type CategoryType {
id: ID!
name: String!
ingredients: [IngredientType]
}
type IngredientType {
id: ID!
name: String!
notes: String!
category: CategoryType!
}
type Query {
category(id: Int, name: String): CategoryType
allCategories: [CategoryType]
ingredient(id: Int, name: String): IngredientType
ingredients(ids: [Int]): [IngredientType]
allIngredients: [IngredientType]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment