friends im trying to make a query to know if a note that the query goes was mentioned in the -zoom:: property of the other notes.
Example:
Note A
-zoom:: Note B
Note C
-zoom:: Note B (alias instead of the title)
Note B
query
On note B i would like to have a query to know which notes linked to note B (alias or title) in the -zoom:: property
What i have tried to do :
{{query (page-property -zoom <% current page %> )}}
the problem with the query above is that it only gets the notes linked to note B title, but the ones linked to note B alias do not show
This is because in note A the value [[note B]] is with capital b. I don’t have a way to address all possible cases, because most clojure functions are not currently available in queries. Here are some options:
manually fix the case to be consistent
cover the most common case by adding [?current :block/original-name ?name] inside or-join
By design, internally all names are converted to lower-case. This is the reason of existence for :block/original-name. But other cases (e.g. NOTE b) won’t work.
thanks and just to see if get, the recommendation is to always write with lower case in logseq, even if is not related to query stuff ? I ussually write some of my tags with camel case