AbsintheQueryAll - comprehensiveness checking of Absinthe GraphQL implementations`

I finally got around to open-sourcing some of the Elixir code I wrote about in my blog post about achieving frontend/backend type safety as a package that is (hopefully) fairly straightforward to use.

This library can be used for two things:

  1. To setup a test suite that automatically generates tests to verify that all fields are accounted for in every Absinthe resolve callback in your GraphQL setup (see this part of the README).
  2. As a set of convenience functions for building other kinds of tooling that might be helped by the ability to easily make comprehensive GraphQL queries. I use it to create convenience functions for Absinthe testing. It felt like broadening the scope too much to include those in this package, but I might try open-sourcing them in a different one.

This is the first package I’ve ever made. I’m not sure if other people will be interested in this functionality like I am, but I figured I’d give it a shot just in case.

2 Likes