mix absinthe.gen.type (absinthe_generator v0.1.0) View Source
Generates an Absinthe Type
Options
:app_name- Required. Application name you're generating the code under:type_name- Required. name of the type:moduledoc- Moduledoc message can be injected into the resulting output code:enums- List of %AbsintheGenerator.Type.EnumValue{}:objects- List of %AbsintheGenerator.Type.Object{}
Specifying Types
To specify types we can utilize the following syntax
type_name:enum:VALUE_1:VALUE_2:VALUE_3
type_name:object:name:string:birthday:date:names:list_of(string)
Example
mix absinthe.gen.type
animal:enum:CAT:DOG
user:object:name:string:birthday:date:id:id:animal:animal
--app-name MyApp
--type-name people
Link to this section Summary
Functions
Callback implementation for Mix.Task.run/1.
Link to this section Functions
Callback implementation for Mix.Task.run/1.