Hi, struggling to use Graph API for basic stuff.
I can create new items in a board using long hand query mutation, but the same query wont work when using column_values.
This works fine
{
"query": "mutation ($boardId: Int!, $itemName: String!){create_item(board_id: $boardId, item_name: $itemName, column_values: \\"{\\\\\\"text\\\\\\":\\\\\\"a text value\\\\\\"}\\"){id}}",
"variables": {
"boardId": 12345,
"itemName": "new item"
}
}
But when i try convert column_values to a variable, it doesn’t work, 500 Internal Server Error.
{
"query": "mutation ($boardId: Int!, $itemName: String!, $columnValues: JSON!){create_item(board_id: $boardId, item_name: $itemName, column_values: $columnValues){id}}",
"variables": {
"boardId": 1234,
"itemName": "new item",
"columnValues": {
"text": "some text"
}
}
}