Advanced query for showing all tasks on the same level as the query and below?

So I’ll modify the query from

To search down instead of up :slight_smile:

#+BEGIN_QUERY
{:title ["Find child blocks"]
 :query [:find (pull ?child [*])
   :in $ %
   :where
     [?parent :block/content "v23-05"]
     (get-children ?parent ?child)
     ; Add any ?child block filtering here.
 ]
 :rules [
   [(get-children ?parent ?child)
     [?child :block/parent ?parent]
   ]
   [(get-children ?parent ?child)
     [?t :block/parent ?parent]
     (get-children ?t ?child)
   ]
 ]
}
#+END_QUERY

If you need help with any specific filters let me know!

1 Like