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
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
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)]]))}
```cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |