Schema Documentation
createCategory
Description
The payload for 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":"abc123"}}}