Skip to content

A repo where I've got some examples of pathom3 plugins that I've used.

Notifications You must be signed in to change notification settings

dehli/pathom3-plugins

Repository files navigation

Pathom3 Plugins

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 "[email protected]:dehli/pathom3-plugins.git"
                               :sha "<COMMIT_SHA>"}}}

Id Remaps Plugin

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.

Params Spec Plugin

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.

Development

clj -M:outdated       # View outdated dependencies
clj -M:provided:test  # Run tests

Linting

# Pull latest kondo configs
clj-kondo --lint "$(clojure -Spath)" --copy-configs --dependencies

# Lint project
clj-kondo --lint ./src

About

A repo where I've got some examples of pathom3 plugins that I've used.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published