One small gotcha I found is that Entity objects do not work with merge, even if you touch them:
(merge (d/touch (d/entity (d/db conn))))One small gotcha I found is that Entity objects do not work with merge, even if you touch them:
(merge (d/touch (d/entity (d/db conn))))
will throw
; Execution error (UnsupportedOperationException) at datalevin.entity.Entity/cons (entity.clj:65).
; nth not supported on this type: PersistentArrayMapOne small gotcha I found is that Entity objects do not work with merge, even if you touch them:
(merge (d/touch (d/entity (d/db conn) some-id)))
will throw
; Execution error (UnsupportedOperationException) at datalevin.entity.Entity/cons (entity.clj:65).
; nth not supported on this type: PersistentArrayMap
I know the documentation caveats they are not maps, just map-like, so I'm not sure if this qualifies as unintended behavior or not. One workaround is to use (into {} my-entity)