mirror of https://github.com/logseq/logseq
query: parent and children don't have the same ref
parent
467888e7c6
commit
9bf8bef59a
|
@ -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)]
|
||||||
))]
|
))]
|
||||||
|
|
Loading…
Reference in New Issue