items_page_by_column_values error

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
}
}
}”

Error :
{
“errors”: [
{
“message”: “Field ‘items_page_by_column_values’ doesn’t exist on type ‘Query’”,
“locations”: [
{
“line”: 2,
“column”: 3
}
],
“path”: [
“query”,
“items_page_by_column_values”
],
“extensions”: {
“code”: “undefinedField”,
“typeName”: “Query”,
“fieldName”: “items_page_by_column_values”
}
}
],
}

Does somebody has an idea ?
I’m sorry, i just start to work with Monday’s API…
Thanks
Simon

hi @simonUnista

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:

image

1 Like

Hello @simonUnista,

What @basdebruin suggested is my first guess too.

Is that the source of the issue?

(Thank you @basdebruin !!!)

1 Like