Schema Documentation

createProduct

Description

The createProduct mutation

Response

Returns a CreateProductPayload

Arguments
NameDescription
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"}}}