Created
January 16, 2019 08:01
-
-
Save kaka2507/f130b5ae11db5a4607e3ae3ebe9a8fa5 to your computer and use it in GitHub Desktop.
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
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