Hello,
In 2023-10 there is this change: “Type changed: All IDs now use the ID type, not Int.”
This page says: Migration guide - 2023-10
Version 2023-10 has some type changes to improve the consistency of our GraphQL API.
Specifically, we aligned our schema so all fields representing numerical IDs now use the
ID
type. As a return value, it’s expressed as a string. When used in an argument (input), it accepts either string or integer values.If your app is strongly typed, your code may throw an error when this type changes because your application will expect an integer but receive a string.
To solve this, please review your API calls to check if you use any affected fields. Then, ensure your code accepts both integer and string values.
Note: Even though you could convert the strings to integers, we don’t recommend it, as the structure of these IDs may change in the future.
The problem is that the column_values JSON string only accepts Int type and gives ColumnValueException if it is String:
"column_values": "{\"connect_boards\":{\"item_ids\" : [\"123456789\"]}}"
response:
{
"error_code": "ColumnValueException",
"status_code": 200,
"error_message": "There are items that are not in the connected boards",
"error_data": {}
}
It works only with Int type:
"column_values": "{\"connect_boards\":{\"item_ids\" : [123456789]}}"
Also, it returns Int type when querying which was supposed to be a String:
"column_values": [
{
"id": "connect_boards",
"value": "{\"linkedPulseIds\":[{\"linkedPulseId\":123456789}]}"
}
]
Maybe I’m missing something but this seems like a bug.
Thanks
G