mirror of
https://github.com/vercel/commerce.git
synced 2025-06-21 14:31:21 +00:00
29 lines
551 B
TypeScript
29 lines
551 B
TypeScript
export const transitionOrderToStateMutation = /* GraphQL */ `
|
|
mutation transitionOrderToState($state: String!) {
|
|
transitionOrderToState(state: $state) {
|
|
__typename
|
|
...on Order {
|
|
id
|
|
state
|
|
customer {
|
|
id
|
|
}
|
|
totalQuantity
|
|
lines {
|
|
id
|
|
}
|
|
}
|
|
...on ErrorResult {
|
|
errorCode
|
|
message
|
|
}
|
|
...on OrderStateTransitionError {
|
|
errorCode
|
|
message
|
|
transitionError
|
|
fromState
|
|
toState
|
|
}
|
|
}
|
|
}
|
|
` |