Fork me on GitHub
#datomic
<
2016-12-28
>
xsyn05:12:55

If I do a count inside a datalog query: (q/q '[:find (count ?x)… and ?x is nil, does the count return nil or 0 ?

xsyn05:12:13

I mean, does the query return nil or 0 ?

xsyn06:12:09

Turns out I can check for myself......

val_waeselynck19:12:56

@xsyn if there is no match for the where clause, it will return nil, which can be annoying.

xsyn20:12:07

Yeah, I was running into a null pointer because I expected it to work differently. But it’s cool, now that I know