Skip to content

Instantly share code, notes, and snippets.

@csokol
Last active November 2, 2021 17:03
Show Gist options
  • Save csokol/cde13493059624c06ce93b3ab45132bd to your computer and use it in GitHub Desktop.
Save csokol/cde13493059624c06ce93b3ab45132bd to your computer and use it in GitHub Desktop.
{
orders(warehouse: 42, page: 1, pageSize: 2) {
orders {
id
door
supplier
actvities {
type
expected
performed
}
products {
id
description
dimensioning
actvities {
type
expected
performed
}
}
}
totalResults
}
}
{
orderDetail(warehouse: 42, orderId: "WHS-164-13942894-WH-42") {
id
door
supplier
actvities {
type
expected
performed
}
products {
id
description
dimensioning
actvities {
type
expected
performed
}
}
}
}
type Query {
orders(warehouse: Int, page: Int! = 1, pageSize: Int! = 10): PaginatedOrders
orderDetail(warehouse: Int, orderId: String): Order!
}
type PaginatedOrders {
orders: [Order]
totalResults: Int
}
type Order {
id: ID
door: Int!
supplier: String
actvities: [Activity]
products: [Product]
appointmentDate: String!
}
type Product {
id: String
description: String
actvities: [Activity]
dimensioning: DimensioningState!
}
type Activity {
type: String
expected: Int
performed: Int
}
enum DimensioningState {
NOT_NEEDED, REQUIRED, MARKED, COMPLETED
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment