Liking cljdoc? Tell your friends :D

cz.holyjak.rad.database-adapters.asami.read

Support for reading RAD entities from Asami

Support for reading RAD entities from Asami
raw docstring

entitiesclj

(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).
sourceraw docstring

transform-entityclj

(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
sourceraw docstring

transform-entity-propertyclj

(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
sourceraw docstring

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

× close