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.
It finds all blocks that contain a string that is defined in the page property “string1” of “Testpage”. The property is forbidden to be empty to not query all block.
I tried doing the same in DB version but it doesn’t work, I think block/properties and block/original-name are named differently ind DB version? When I look at block EDN data I see the string1 property but with a more complex key like so: “:user.property/string1-K1yBJFiz”
Thanks for your help, I tried to merge that with Gregor83’s query above without sucess. I think one of the issue might be that [?p :block/title “Testpage”] can match all blocks instead of just pages.