✨ Start on error handling

♻ Use TypedDocumentNode's instead of apollo-react-typescript codegen
💄 Add toast
This commit is contained in:
nikolark committed 2021-11-06 21:49:28 +01:00
1 parent ed82ca3891
commit 0a435d3224
21 files changed
+565 -117

No files matched your search

@@ -0,0 +1,26 @@
mutation CreateOrder($customerId: ID!, $orderLines:[OrderLineInput!]!) {
createOrder(customerId: $customerId, orderLines: $orderLines) {
... on CreateOrderSuccess {
order {
id
customer {
id
}
orderSum
}
}
... on InsufficientFunds {
error
message
amountLacking
}
... on FormErrors {
error
message
fields {
field
message
}
}
}
}