This repository exposes some plugins that I use with pathom3
.
Feel free to include the project via deps.edn
or copy the plugins directly
(source).
{:deps {dehli/pathom3-plugins {:git/url "git@github.com:dehli/pathom3-plugins.git"
:sha "<COMMIT_SHA>"}}}
This plugin allows you to specify an ::id-remaps
key on your defmutation
.
By specifying this, if the consumer passes up a temporary id, :app/id-remaps
will be automatically merged in.
This plugin allows you to specify a ::params-spec
key on your defmutation
.
By specifying this, the mutation will only be invoked if the params fulfills
the spec contract. Additionally, select-spec
will be called
on params so that extra data isn't sent to the mutation.
clj -M:outdated # View outdated dependencies
clj -M:provided:test # Run tests
# Pull latest kondo configs
clj-kondo --lint "$(clojure -Spath)" --copy-configs --dependencies
# Lint project
clj-kondo --lint ./src