Hi all,
I use complex queries in logseq to search for strings in my meeting notes, for example.
It is inconvenient to always open the query code to change the strings, that are used as input.
Therefore, I am curious if it is possible to connect values outside of the query with the input variables. This could be page properties of a known page or block content of a block with a known UUID.
Porperty on Testpage
Example Query:
#+BEGIN_QUERY
{:title "Suche alle Blöcke, die einen Suchbegriff enthalten"
:inputs ["Testbegriff"]
:query [:find (pull ?b [*])
:in $ ?string1
:where
[?b :block/content ?c]
[(not= ?string1 "")]
[(re-pattern ?string1) ?q]
[(re-find ?q ?c)]]
:collapsed? false}
#+END_QUERY
Do you know how I can use the value of the property “string1” on “Testpage” as input value for the variable “string1” in my query?