Schema Documentation
createOrder
Description
The createOrder mutation
Response
Returns a CreateOrderPayload
Arguments
Name | Description |
---|---|
input - CreateOrderInput! | Input for the createOrder mutation |
Example
Query
mutation createOrder($input: CreateOrderInput!){ createOrder(input: $input){ clientMutationIdorder { ...OrderFragment }orderId }}
Variables
{"input":CreateOrderInput}
Response
{"data":{"createOrder":{"clientMutationId":"abc123","order":Order,"orderId":987}}}