Liking cljdoc? Tell your friends :D

roterski.fulcro.rad.database-adapters.crux-options


databasesclj/s

If using the crux pathom-plugin, the resulting pathom-env will contain a map from schema->database at this key path

If using the crux pathom-plugin, the resulting pathom-env will contain
a map from schema->database at this key path
raw docstring

nodesclj/s

If using the crux pathom-plugin, the resulting pathom-env will contain a map from schema->node at this key path

If using the crux pathom-plugin, the resulting pathom-env will contain
a map from schema->node at this key path
raw docstring

transaction-functionsclj/s

A way to a add custom transaction functions to each crux node. Should be a map where the key is a name of the function and the value (that needs to be a symbol) is a body of the function See https://opencrux.com/reference/21.02-1.15.0/transactions.html#transaction-functions

{::example-fn '(fn [ctx [id {:keys [before after]}]]
                  (let [db (crux.api/db ctx)
                        entity (crux.api/entity db id)]
                    [[:crux.tx/match id (some-> entity (merge before))]
                     [:crux.tx/put (merge entity after)]]))}
A way to a add custom transaction functions to each crux node.
Should be a map where the key is a name of the function and the value (that needs to be a symbol) is a body of the function
See https://opencrux.com/reference/21.02-1.15.0/transactions.html#transaction-functions
```
{::example-fn '(fn [ctx [id {:keys [before after]}]]
                  (let [db (crux.api/db ctx)
                        entity (crux.api/entity db id)]
                    [[:crux.tx/match id (some-> entity (merge before))]
                     [:crux.tx/put (merge entity after)]]))}
```
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close