Fix order detail routing and loading
This commit is contained in:
21
graphql/operations/orders/order-detail.graphql
Normal file
21
graphql/operations/orders/order-detail.graphql
Normal file
@@ -0,0 +1,21 @@
|
||||
query OrderDetail($id: ID!) {
|
||||
order(id: $id) {
|
||||
id
|
||||
code
|
||||
kind
|
||||
status
|
||||
customerId
|
||||
deliveryAddress
|
||||
deliveryTerms
|
||||
deliveryFee
|
||||
totalPrice
|
||||
createdAt
|
||||
items {
|
||||
id
|
||||
productName
|
||||
quantity
|
||||
unitPrice
|
||||
lineTotal
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -334,6 +334,7 @@ type Query {
|
||||
myNotificationHistory(channel: MessengerType!, limit: Int = 50): [NotificationHistoryItem!]!
|
||||
managerNotificationHistory(userId: ID!, channel: MessengerType!, limit: Int = 50): [NotificationHistoryItem!]!
|
||||
clientProducts: [Product!]!
|
||||
order(id: ID!): Order
|
||||
myOrders: [Order!]!
|
||||
myCurrentOrders: [Order!]!
|
||||
managerUsers: [ManagerUser!]!
|
||||
|
||||
Reference in New Issue
Block a user