Fork me on GitHub
#datascript
<
2016-06-22
>
conaw02:06:50

hey can anyone help me out on the syntax for

not
or
not-join

conaw02:06:01

i get core.cljs:9356 Uncaught Error: Cannot compare :node/text to [?e]

conaw02:06:13

when I do

conaw02:06:42

'[:find ?e
                          :where 
                          [?e :node/text ?text]
                          [?m :node/text _]
                          (not-join [?e] 
                                    [?m :node/children ?e])]

conaw02:06:15

Seems that not-joins aren’t part of the real api (what I get for going off the tests), however, this is how I got what I wanted

(d/q '[:find ?p ?text
       :in $
       :where [?p :node/text ?text]
              [_ :node/children ?e]
       [(not= ?p ?e)]
       [(not= ?text  "untitled")]]
 @conn2)

Niki06:06:51

Not and not-join are not supported yet