I’m trying to recreate this filter in GraphQL. I can figure out how to next rules.
Any help appreciated.
Guy
I’m trying to recreate this filter in GraphQL. I can figure out how to next rules.
Any help appreciated.
Guy
Hi trying to understand the request here, perhaps need more info. looking online
To recreate a complex filter with nested AND/OR logic in monday.com’s GraphQL API, you can use the items_page
query with structured query_params
. Here’s a simplified example of how to nest rules:
To replicate a filter like:
(Duration < 5 OR Duration > 100) AND Status = “Stuck”
You can structure your GraphQL like this:
{
boards(ids: 1234567890) {
items_page(query_params: {
rules: [
{
rules: [
{ column_id: “duration__days_”, compare_value: 5, operator: lower_than },
{ column_id: “duration__days_”, compare_value: 100, operator: greater_than }
],
operator: or
},
{
column_id: “status”,
compare_value: [“Stuck”],
operator: any_of
}
],
operator: and
}) {
items {
id
name
}
}
}
}
Not sure if that helps?