Skip to content

Instantly share code, notes, and snippets.

@roytouw7
Created December 10, 2020 15:36
Show Gist options
  • Save roytouw7/17c4dc1f9f0df0fa88fb8c235d34927c to your computer and use it in GitHub Desktop.
Save roytouw7/17c4dc1f9f0df0fa88fb8c235d34927c to your computer and use it in GitHub Desktop.
The sample database schema.
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