|
@@ -43,7 +43,7 @@
|
|
|
|
|
|
(defn entity
|
|
|
"This function will return nil if passed `id-or-lookup-ref` is an integer and
|
|
|
- the entity doesn't exist in db (Datascript will return {:id id}).
|
|
|
+ the entity doesn't exist in db.
|
|
|
`repo-or-db`: a repo string or a db,
|
|
|
`id-or-lookup-ref`: same as d/entity."
|
|
|
([id-or-lookup-ref]
|
|
@@ -55,10 +55,7 @@
|
|
|
(conn/get-db repo))
|
|
|
;; db
|
|
|
repo-or-db)]
|
|
|
- (if (integer? id-or-lookup-ref)
|
|
|
- (when (d/datoms db :eavt id-or-lookup-ref)
|
|
|
- (d/entity db id-or-lookup-ref))
|
|
|
- (d/entity db id-or-lookup-ref)))))
|
|
|
+ (d/entity db id-or-lookup-ref))))
|
|
|
|
|
|
(defn pull
|
|
|
([eid]
|