Queries of the “column” field on “boards” take the argument of boards(columns(ids: [String!])) however the Column object id field is of type ID! according to the schema.
while its essentially moot, since ID in a column is always a string. But inconsistencies like this make writing queries using variables a bit more painful since all IDs should be of type ID including when used as arguments (as is the case for boards(ids: [ID!]))
of course someone will gripe that fixing this will create a breaking change in the next API where queries need to get updated…
This is not the way variables are used in GraphQL.
each argument in GraphQL accepts a single variable. You are trying to combine variables into an array within the query string which is not possible. For the items are using the ID type name as a variable name. The first part after the word query is the definition of variables $itemId and its type - a non nullable array of IDs [ID!].
Well in your original query you are using [$ID] as a variable for items, when there is no variable $ID defined - there is a variable $itemId defined like in the second one, which you are using correctly there but not in the first query.
You are referencing a variable that doesn’t exist and defining a variable that isn’t used in the first query you asked about.
Also, just for reference, this thread was about the argument type of colum_values(ids: [String] mismatching with the type of column IDs (ID). This is not directly related to the issue you were having. This really should have been a new thread instead of threadjacking the original thread.