I’m new to Logseq (after using TiddlyWiki, Roam and Obsidian) and I’m truly impressed by its abilities. Usage is quite straightforward, except for advanced queries. I have the following query where I want to list all blocks containing both the tag “note” and the tag representing the current page (the current page being the page representing the person I talked to)
#+BEGIN_QUERY
{:title "All blocks with tag project"
:query [:find (pull ?b [*])
:in $ ?current-page
:where
[?p :block/name "note"]
[?z :block/name ?current-page]
[?b :block/refs ?p]
[?b :block/refs ?z]]
:inputs [:current-page]
}
#+END_QUERY
This works fine on the first page I put the query on. On the second page, the query runs but uses the value of ?current-page from the first page. How does one deal with this kind of problem?