Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ribelo
on July 23, 2020
|
parent
|
context
|
favorite
| on:
Show HN: Biff – Self-hosted Firebase alternative f...
https://opencrux.com/docs#_transaction_functions
``` (crux/submit-tx node [[:crux.tx/put {:crux.db/id :crux.fn/assoc :crux.db/fn '(fn [ctx eid k v] (let [db (crux.api/db ctx) entity (crux.api/entity db eid)] [[:crux.tx/put (assoc entity k v)]]))}]])
(crux/submit-tx [[:crux.tx/fn :crux.fn/assoc doc-id k v]]) ```
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
(crux/submit-tx [[:crux.tx/fn :crux.fn/assoc doc-id k v]]) ```