Schema Documentation
createCategory
Description
The createCategory mutation
Response
Returns a CreateCategoryPayload
Arguments
Name | Description |
---|---|
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"}}}