Liking cljdoc? Tell your friends :D

roterski.fulcro.rad.database-adapters.crux.generate-resolvers


crux-result->pathom-resultclj

(crux-result->pathom-result k->a pathom-query result)

Convert a crux result containing :crux.db/id into a pathom result containing the proper id keyword that was used in the original query.

Convert a crux result containing :crux.db/id into a pathom result containing the proper id keyword that was used
in the original query.
raw docstring

entity-queryclj

(entity-query
  {:keys
     [:com.fulcrologic.rad.attributes/schema
      :roterski.fulcro.rad.database-adapters.crux.generate-resolvers/id-attribute]
   :com.fulcrologic.rad.attributes/keys [attributes]
   :as env}
  input)

generate-resolversclj

(generate-resolvers attributes schema)

Generate all of the resolvers that make sense for the given database config. This should be passed to your Pathom parser to register resolvers for each of your schemas.

Generate all of the resolvers that make sense for the given database config. This should be passed
to your Pathom parser to register resolvers for each of your schemas.
raw docstring

get-by-idsclj

(get-by-ids db idents _db-idents desired-output)

id-resolverclj

(id-resolver
  all-attributes
  {:com.fulcrologic.rad.attributes/keys [qualified-key]
   :keys
     [:com.fulcrologic.rad.attributes/schema
      :roterski.fulcro.rad.database-adapters.crux.generate-resolvers/wrap-resolve
      :com.wsscode.pathom.connect/transform]
   :as id-attribute}
  output-attributes)

Generates a resolver from id-attribute to the output-attributes.

Generates a resolver from `id-attribute` to the `output-attributes`.
raw docstring

pathom-query->crux-queryclj

(pathom-query->crux-query all-attributes pathom-query)

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close