(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.
(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-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.
(get-by-ids db idents _db-idents desired-output)
(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`.
(pathom-query->crux-query all-attributes pathom-query)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close