mirror of
https://github.com/logseq/logseq.git
synced 2026-04-29 00:24:51 +00:00
fix: use ast blocks for advanced queries conversion
Fixes cases where BEGIN_QUERY nested in BEGIN_SRC were incorrectly being converted to queries e.g. most queries in https://docs.logseq.com/#/page/advanced%20queries
This commit is contained in:
committed by
Tienson Qin
parent
507ff3ce29
commit
cc05518ea5
@@ -41,4 +41,14 @@
|
||||
:breadcrumb-show? true
|
||||
:collapsed? False
|
||||
}
|
||||
#+END_QUERY
|
||||
#+END_QUERY
|
||||
- Get all tasks with a tag "project"
|
||||
#+BEGIN_SRC clojure
|
||||
#+BEGIN_QUERY
|
||||
{:title "All blocks with tag project"
|
||||
:query [:find (pull ?b [*])
|
||||
:where
|
||||
[?p :block/name "project"]
|
||||
[?b :block/refs ?p]]}
|
||||
#+END_QUERY
|
||||
#+END_SRC
|
||||
Reference in New Issue
Block a user