Popularity
3.4
Declining
Activity
0.0
Stable
28
3
1

Monthly Downloads: 50
Programming language: Elixir
License: MIT License

absinthe_gen alternatives and similar packages

Based on the "Domain-specific language" category.
Alternatively, view absinthe_gen alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of absinthe_gen or a related project?

Add another 'Domain-specific language' Package

README

AbsintheGen

Scaffold generator for Elixir Absinthe projects.

I'm currently looking for ideas and suggestions, please feel to create an issue with features you'd like added or add ideas here!

Installation

Available on hex.pm. The package can be installed by adding absinthe_gen to your list of dependencies in mix.exs:

def deps do
  [
    {:absinthe_gen, "~> 0.2"}
  ]
end

The docs can be found at https://hexdocs.pm/absinthe_gen.

Usage

The scaffold task will generate a schema, a type and a resolver files based on "Our First Query" tutorial. You can pass in multiple fields, the field types can be found here.

mix absinthe.gen.scaffold my_context my_type my_field:string my_other_field:string

Created:

    lib/absinthe_app_web/schema/my_context_types.ex
    lib/absinthe_app_web/schema.ex
    lib/absinthe_app_web/resolvers/my_type.ex

Available options:

  • --path PATH - specify a subdirectory of absinthe_app_web where to create the files.