Schema Documentation

createCategory

Description

The createCategory mutation

Response

Returns a CreateCategoryPayload

Arguments
NameDescription
input - CreateCategoryInput! Input for the createCategory mutation

Example

Query
mutation createCategory($input: CreateCategoryInput!){  createCategory(input: $input){    category {      ...CategoryFragment    }clientMutationId  }}
Variables
{"input":CreateCategoryInput}
Response
{"data":{"createCategory":{"category":Category,"clientMutationId":"xyz789"}}}