Closed gdw2 closed 1 year ago
This seems to work for me:
#+BEGIN_QUERY
{:title "All pages have a *programming* tag"
:query [:find ?name
:in $ ?tag
:where
[?t :block/name ?tag]
[?b :block/refs ?t]
[?b :block/page ?p]
[?p :block/name ?name]]
:inputs ["programming"]
:view (fn [result]
[:div.flex.flex-col
(for [page result]
[:a {:href (str "#/page/" page)} (clojure.string/capitalize page)])])}
#+END_QUERY
Hi. The documented query works for me with the following md page:
tags:: programming
The command shows :block/tags:
Thanks.
I'm relatively new to logseq and the advanced query page seems to use 'tags' to mean backlinks included in a block as well as putting the tags property on a page. I wasn't aware of the latter use.
I'll close this issue.
I tried the advanced query below src here and it didn't return any results, despite having pages that have
#programming
tags.I suspect the example is wrong, particularly the
:block/tags
part, for two reasons::block/tags
attribute.block/tags
attribute, nothing is returned.Could this example be wrong? If so, how would one do this query?