food-graphql-server/schema.gql

32 lines
577 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"""
createStore(input: StoreInput!): Store!
}
2021-02-01 13:36:26 +00:00
type Query {
2021-02-02 10:34:34 +00:00
"""Get all the stores"""
2021-02-01 13:36:26 +00:00
stores: [Store!]!
}
type Store {
2021-02-02 10:34:34 +00:00
city: String!
id: String!
name: String!
number: Int!
postalCode: String!
street: String!
}
2021-02-01 13:36:26 +00:00
2021-02-02 10:34:34 +00:00
input StoreInput {
city: String!
2021-02-01 13:36:26 +00:00
name: String!
2021-02-02 10:34:34 +00:00
number: Int!
postalCode: String!
street: String!
2021-02-01 13:36:26 +00:00
}