Enumex.Static.Components.AbsinthePhase (Enumex v1.0.0)
View SourceA component that generates an absinthe phase that integrates with the GraphQL pipeline to handle static enum type definitions.
Dependencies
Requires Absinthe.Pipeline
module from :absinthe
dependency.
Example
defmodule MyApp.Enums do
use Enumex.Static, components: [Enumex.Static.Components.AbsinthePhase]
# enum definitions goes here
end
defmodule MyApp.GraphQL.Schema do
use Absinthe.Schema
@pipeline_modifier MyApp.Enums
end