food-graphql-server/schema.gql

32 lines
577 B
GraphQL

# -----------------------------------------------
# !!! THIS FILE WAS GENERATED BY TYPE-GRAPHQL !!!
# !!! DO NOT MODIFY THIS FILE BY YOURSELF !!!
# -----------------------------------------------
type Mutation {
"""Create a new store"""
createStore(input: StoreInput!): Store!
}
type Query {
"""Get all the stores"""
stores: [Store!]!
}
type Store {
city: String!
id: String!
name: String!
number: Int!
postalCode: String!
street: String!
}
input StoreInput {
city: String!
name: String!
number: Int!
postalCode: String!
street: String!
}