chore: update test query example

pull/1992/head
Tienson Qin 2021-05-25 22:44:30 +08:00
parent e7879c5388
commit f8e63fd486
1 changed files with 7 additions and 4 deletions

View File

@ -372,10 +372,13 @@ last-modified-at:: 1609084800002"}]]
;; FIXME: not working
;; (are [x y] (= (q-count x) y)
;; "(or (priority a) (not (priority a)))"
;; {:query '(or
;; (and [?b :block/priority ?priority] [(contains? #{"A"} ?priority)])
;; (and (not [?b :block/priority ?priority]
;; [(contains? #{"A"} ?priority)])))
;; {:query '[(or-join [?b]
;; (and
;; [?b :block/priority ?priority]
;; [(contains? #{"A"} ?priority)])
;; (not-join [?b]
;; [?b :block/priority ?priority]
;; [(contains? #{"A"} ?priority)]))]
;; :count 5})
(are [x y] (= (q-count x) y)