food-graphql-server/schema.gql

43 lines
724 B
Plaintext
Raw Normal View History

2021-02-01 13:36:26 +00:00
# -----------------------------------------------
# !!! THIS FILE WAS GENERATED BY TYPE-GRAPHQL !!!
# !!! DO NOT MODIFY THIS FILE BY YOURSELF !!!
# -----------------------------------------------
2021-02-02 10:34:34 +00:00
type Mutation {
"""Create a new store"""
2021-02-02 14:08:42 +00:00
createStore(input: StoreInput): Store
}
type Product {
description: String
id: String
name: String
price: Float
2021-02-02 10:34:34 +00:00
}
2021-02-01 13:36:26 +00:00
type Query {
2021-02-02 14:08:42 +00:00
"""Get a specific store"""
store(id: String): Store
2021-02-02 10:34:34 +00:00
"""Get all the stores"""
2021-02-02 14:08:42 +00:00
stores: [Store]
2021-02-01 13:36:26 +00:00
}
type Store {
2021-02-02 14:08:42 +00:00
city: String
id: String
name: String
number: Int
postalCode: String
products: [Product]
street: String
2021-02-02 10:34:34 +00:00
}
2021-02-01 13:36:26 +00:00
2021-02-02 10:34:34 +00:00
input StoreInput {
2021-02-02 14:08:42 +00:00
city: String
name: String
number: Int
postalCode: String
street: String
2021-02-01 13:36:26 +00:00
}