Created
January 20, 2015 17:54
-
-
Save kbaribeau/2e33e540627677198150 to your computer and use it in GitHub Desktop.
count returns nil
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(def conn (d/connect "datomic:dev://localhost:4334/seattle")) | |
;44 | |
(d/q '[:find (count ?id) . | |
:in $ ?c | |
:where | |
[?id :community/category ?c]] | |
(d/db conn) | |
"human interest") | |
;nil -- not zero!? | |
(d/q '[:find (count ?id) . | |
:in $ ?c | |
:where | |
[?id :community/category ?c]] | |
(d/db conn) | |
"stuff") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Circular reference comment: https://twitter.com/TheOtherZach/status/557595258158989312