Hi,
Happy to discover Monday’s developpers community.
I faced some issues on my firsts queries and i need your help.
When i launch this query :
“query {
items_by_column_values (board_id: 508611278, column_id: “date”, column_value: “2019-02-06”) {
id
name
}
}”
I received a warning “Replaced by Query.items_page_by_column_values since 2023-10”.
But, when i tried the new one, i also received an error (I just copy an past the documentation sample (?)) :
“query {
items_page_by_column_values (limit: 50, board_id: 508611278, columns: [{column_id: “text”, column_values: [“This is a text column”]}, {column_id: “country”, column_values: [“US”, “IL”]}]) {
cursor
items {
id
name
}
}
}”
Welcome to the community! Did you set the API version to 2023-10 when you tried this example? In the API Playground you can select the API version here:
Hello- This tread is great and answered my question about the query type error. However, I’m getting a parsing error on this that I just can not seem to figure out. Here is my query:
{
“query”: “query { items_page_by_column_values (board_id: 5524419471, columns: {column_id: "opportunity_number8"}), column_values: ["0065a00001Ck712AAB"]}}) { cursor items { id name}}}”
}
And the error is
“Parse error on "[" (LBRACKET) at [1, 121]”,
And as these things usually go, as soon as I post I find my error. Corrected:
{
“query”: “query { items_page_by_column_values (board_id: 5524419471, columns: {column_id: "opportunity_number8", column_values: "0065a00001Ck712AAB"}) { cursor items { id name}}}”
}
I do strongly recommend writing your queries in the API Playground, since it can do a good job at highlighting incorrect structures on a number of things around the items_page.