I want to query the database using pagination, then separate and count the data. Currently, I can only count one condition, and I am unable to obtain the other using a node. If I add a summarize node after the switch node, it only captures the result of a single execution.
Please share your workflow
Share the output returned by the last node
summarize1 get the right result but switch -0 output , I can’t summarize
[
{
“count_id”: 29
}
]
you shouldn’t break the loop this way. The flow will act quite unpredictable. What are you trying to achieve? You can build a filter within the Postgres node without the overcomplexity with the Loop and switch nodes.
general way of working with the Loop node - every branch within the loop should link back to the loop, so it will go to the done branch and combine the data from each run.