query: parent and children don't have the same ref

pull/1347/head
Tienson Qin 2021-02-19 13:47:48 +08:00
parent 467888e7c6
commit 9bf8bef59a
1 changed files with 1 additions and 0 deletions

View File

@ -1257,6 +1257,7 @@
;; (matches-all (union ?p ?b) :block/ref-pages ?refs) ;; (matches-all (union ?p ?b) :block/ref-pages ?refs)
[?p :block/ref-pages ?p-ref] [?p :block/ref-pages ?p-ref]
[?b :block/ref-pages ?b-ref] [?b :block/ref-pages ?b-ref]
[(not= ?p-ref ?b-ref)]
[(contains? ?refs ?p-ref)] [(contains? ?refs ?p-ref)]
[(contains? ?refs ?b-ref)] [(contains? ?refs ?b-ref)]
))] ))]