Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Datomic Queries cheat-sheet
;;; Replace entity with the schema
{:find [...]
:in [...]
:where [...]}
;;; eav
[?e ?a ?v ?tx]
;;; txInstant
[?tx :db/txInstant ?time]
;;; retract
[:db/retract [:entity/id id] attribute value]
;;; identity values for enums
[?status :db/ident ?status-name]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment