Helper functions for working with datomic entities.
Transaction results are put in :result
in the liberator context.
Helper functions for working with datomic entities. Transaction results are put in `:result` in the liberator context.
(assoc-tempid x)
(auth-owns? ctx db user-key)
Check if the user entity is the same as the authenticated user
Check if the user entity is the same as the authenticated user
(conn ctx)
(create ctx)
(created-entity {:keys [result]})
Use when you've created a single entity and stored the tx result under :result
Use when you've created a single entity and stored the tx result under :result
(created-id ctx)
(ctx->update-map ctx)
(ctx-id ctx & [id-key])
Get id from the params, try to convert to number TODO this is better solved with routing type hint
Get id from the params, try to convert to number TODO this is better solved with routing type hint
(db ctx)
(delete ctx)
(update ctx)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close