Schema Documentation
createProduct
Description
The createProduct mutation
Response
Returns a CreateProductPayload
Arguments
| Name | Description |
|---|---|
input - CreateProductInput! | Input for the createProduct mutation |
Example
Query
mutation createProduct($input: CreateProductInput!){ createProduct(input: $input){ product { ...ProductFragment }clientMutationId }}Variables
{"input":CreateProductInput}Response
{"data":{"createProduct":{"product":Product,"clientMutationId":"abc123"}}}