Absinthe StreamData

Hex pmHex DocsLicense.github/workflows/elixir.yml

Build StreamData generator for valid Absinthe documents from an Absinthe schema.

It can take an entire schema, or single root queries/mutations and generate valid documents from them. Supports variables and arguments.

By default supports all graphql scalar types but can be extended with custom typemappers.

This gives you the chance to run random GraphQL documents against your schema and see whether any of them returns errors you don't expect.

Installation

The package can be installed by adding absinthe_streamdata to your list of dependencies in mix.exs:

def deps do
  [
    {:absinthe_streamdata, "~> 0.1.0"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/absinthe_streamdata.