Hello,
I’m trying to use the new function item_page,
And i would like to know how to pass an array of CompareValue to the rules param.
Here is my query (not accepting the array so not working):
query GetItemPage($boardId: [ID!], $columnId: ID!, $columnValue: CompareValue!, $columnId1: ID!, $columnvalue1: [CompareValue!]) {
boards(ids: $boardId) {
items_page(
query_params: {rules: [{column_id: $columnId, compare_value: $columnValue},{column_id: $columnId1, compare_value: $columnvalue1, operator: any_of}], operator: and}
) {
items {
id
name
updated_at
created_at
column_values {
id
value
text
}
}
}
}
}
with vars :
{
"boardId": 321654987,
"columnId": "name",
"columnValue": "TEST",
"columnId1": "contact_account",
"columnvalue1": [123456789, 987654321]
}
i want to achieve the same thing as below (working query but i need to pass the array as a variable):
query GetItemPage($boardId: [ID!], $columnId: ID!, $columnValue: CompareValue!, $columnId1: ID!) {
boards(ids: $boardId) {
items_page(
query_params: {rules: [{column_id: $columnId, compare_value: $columnValue},{column_id: $columnId1, compare_value: [123456789, 987654321], operator: any_of}], operator: and}
) {
items {
id
name
updated_at
created_at
column_values {
id
value
text
}
}
}
}
}
with vars :
{
"boardId": 321654987,
"columnId": "name",
"columnValue": "TEST",
"columnId1": "contact_account",
}
Thanks