Mutation
mutation UpdateCategory($request: UpdateCategoryCommandRequestInput!) {
UpdateCategory(request: $request) {
categoryId
}
}Variables
{
"request": {
"categoryId": "id"
}
}Response
{
"data": {
"UpdateCategory": {
"categoryId": "id"
}
}
}Mutations
UpdateCategory
Updates a 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
UpdateCategory(request: UpdateCategoryCommandRequestInput!): UpdateCategoryCommandResponse!Arguments
request
required
Returns
categoryId
ID!
The ID of the updated category.
Mutation
mutation UpdateCategory($request: UpdateCategoryCommandRequestInput!) {
UpdateCategory(request: $request) {
categoryId
}
}Variables
{
"request": {
"categoryId": "id"
}
}Response
{
"data": {
"UpdateCategory": {
"categoryId": "id"
}
}
}Was this page helpful?