Support for reading RAD entities from Asami
Support for reading RAD entities from Asami
(entities {_ :com.fulcrologic.rad.attributes/key->attribute
:cz.holyjak.rad.database-adapters.asami/keys [id-attribute]
:as env}
input
db)Query the database for an entity or entities. Uses the id-attribute to get the entity's id attribute name and the
input that should contain the id(s) that need to be queried for (ex.: {:order/id 1} or [{:order/id 1} ..]).
Returns the data in a Pathom-friendly way (i.e. to-many value becomes always a vector).
Query the database for an entity or entities. Uses the `id-attribute` to get the entity's id attribute name and the
`input` that should contain the id(s) that need to be queried for (ex.: `{:order/id 1}` or `[{:order/id 1} ..]`).
Returns the data in a Pathom-friendly way (i.e. to-many value becomes always a vector).(transform-entity {_ :com.fulcrologic.rad.attributes/key->attribute :as env}
entity)Adjust raw Asami data so that it is suitable for Pathom
Adjust raw Asami data so that it is suitable for Pathom
(transform-entity-property {_ :com.fulcrologic.rad.attributes/key->attribute
:as env}
k
v)Adjust raw Asami data so that it is suitable for Pathom
Adjust raw Asami data so that it is suitable for Pathom
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 |