Mutation
mutation CreateCategory($request: CreateCategoryCommandRequestInput!) {
CreateCategory(request: $request) {
categoryId
}
}Variables
{
"request": {
"name": "string"
}
}Response
{
"data": {
"CreateCategory": {
"categoryId": "id"
}
}
}Mutations
CreateCategory
Creates a new category.
If a request with this mutation’s Idempotency-Key was already completed, the response’s extensions contains an idempotency.{responseName} entry with wasReplayed: true.
MUTATION
CreateCategory(request: CreateCategoryCommandRequestInput!): CreateCategoryCommandResponse!Arguments
request
required
Returns
categoryId
ID!
The ID of the newly created category.
Mutation
mutation CreateCategory($request: CreateCategoryCommandRequestInput!) {
CreateCategory(request: $request) {
categoryId
}
}Variables
{
"request": {
"name": "string"
}
}Response
{
"data": {
"CreateCategory": {
"categoryId": "id"
}
}
}Was this page helpful?