Skip to content

Instantly share code, notes, and snippets.

@kbaribeau
Created January 20, 2015 17:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kbaribeau/2e33e540627677198150 to your computer and use it in GitHub Desktop.
Save kbaribeau/2e33e540627677198150 to your computer and use it in GitHub Desktop.
count returns nil
(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")
@theotherzach
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment