Created
December 10, 2020 15:36
-
-
Save roytouw7/17c4dc1f9f0df0fa88fb8c235d34927c to your computer and use it in GitHub Desktop.
The sample database schema.
This file contains 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 Product { | |
name: String! | |
price: [Price!]! @relation | |
} | |
type Store { | |
name: String! | |
price: Price | |
} | |
type Price { | |
price: Float! | |
store: Store! | |
product: Product! | |
} | |
type Query { | |
allProducts: [Product!]! | |
allStores: [Store!]! | |
allPrices: [Price!]! | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment