43 lines
724 B
GraphQL
43 lines
724 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 Product {
|
|
description: String
|
|
id: String
|
|
name: String
|
|
price: Float
|
|
}
|
|
|
|
type Query {
|
|
"""Get a specific store"""
|
|
store(id: String): Store
|
|
|
|
"""Get all the stores"""
|
|
stores: [Store]
|
|
}
|
|
|
|
type Store {
|
|
city: String
|
|
id: String
|
|
name: String
|
|
number: Int
|
|
postalCode: String
|
|
products: [Product]
|
|
street: String
|
|
}
|
|
|
|
input StoreInput {
|
|
city: String
|
|
name: String
|
|
number: Int
|
|
postalCode: String
|
|
street: String
|
|
}
|