-
Notifications
You must be signed in to change notification settings - Fork 40
Open
Labels
Description
Hi, and thanks for a fine library.
Currently it does not seem easy to call an arbitrary database function on the given JSON payload.
I would like the following possibility:
"/user" {:post #vase/transact {:name :accounts.v1/user-create
:db-fn :my-great-fn
:properties [:db/id
:user/userId
:user/email]}}}
and that this should expand to:
[[:my-great-fn {:user/userId 42 :user/email "hello@example.com"}]]
It is then up to :my-great-fn to generate / expand to the proper data as needed.
I think this is preferable over using custom interceptors with request db or request conn as this will preserve ACID properties.
Would this be possible and desirable to add to Vase?
Regards
Reactions are currently unavailable