Is there any other state variable to track the block that starts the query?


I would like to put a query on one block of a certain page. If I want to get the page name where the query is located I can pass :current-page as input to the query although several issues of :current-page about state update having been raised:
Advanced query with :current-page on macOS/iOS desktop app return wrong results when switching different pages · Issue #4156 · logseq/logseq (
Furthermore, I wonder whether it is possible to fetch the any attribute of the block on which the query statements lied. In other words, I need some state variable like :current-block to give the query a context in block level.

Thanks a lot!

1 Like

If there’s not, that’s definitely a feature request. Isn’t it?

1 Like