Skip to main content

I am using the following rule:


query {

boards(ids: “${boardId}”) {


    items_page(limit: 200,  query_params: {rules: e { 
column_id: "${columnId}", compare_value:l"TOMORROW"], compare_attribute: "END_DATE", operator: equals}]}) {
items {

name
id
url
}
}

}
},

However I am getting this following error : Argument ‘operator’ on InputObject ‘ItemsQueryRule’ has an invalid value (equals). Expected type ‘ItemsQueryRuleOperator’.

Although the documentation shows “equals” as a valid ItemsQueryRuleOperator, it does not seem to be supported.


You can try this one is you want only the exact end dates for tomorrow.


query_params: {operator: and, rules: e{column_id: "timeline", compare_value: "TOMORROW", compare_attribute: "END_DATE" operator: greater_than_or_equals}, {column_id: "timeline", compare_value: "TOMORROW", compare_attribute: "END_DATE" operator: lower_than_or_equal}]}

Thank you. That was really helpful.


@basdebruin is correct!


Apologies for the confusion regarding the EQUALS operator. I am going to remove that from the docs now!


Let us know if you have any other questions.


Best,

Rachel


Reply