馃悰 [Bug] Cannot update post without a category
Created by: Tirokk
Authored by roschaefer Closed
馃悰 Bugreport
When I try to update my post, I get a validation error because of missing categories even if I update those and the post has enough (e.g. 3) categories.
Steps to reproduce the behavior
- Get the ID of one of your posts
- Login to get the JWT token
- Run the following query:
mutation($id: ID!, $title: String! $content: String!) {
UpdatePost(id: $id, title: $title, content: $content) {
title
content
author {
name
}
}
}
- See validation error:
{
"errors": [
{
"message": "You cannot save a post without at least one category or more than three",
"locations": [
{
"line": 2,
"column": 3
}
],
"path": [
"UpdatePost"
],
"extensions": {
"code": "BAD_USER_INPUT"
}
}
],
"data": {
"UpdatePost": null
}
}
Expected behavior
Should update the post just fine.