AbsintheGen v0.2.0 mix absinthe.gen.scaffold View Source

Will generate a scaffold consisting of a schema, type and resolver files. Multiple fields are accepted.

Example:

mix absinthe.gen.scaffold my_context my_type my_field:string my_other_field:string [OPTIONS]

Created:

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

Options:

  • --path PATH - specify a path where to create the generated files

Link to this section Summary

Functions

A task needs to implement run which receives a list of command line args.

Link to this section Functions

A task needs to implement run which receives a list of command line args.

Callback implementation for Mix.Task.run/1.