absinthe v1.1.6 Mix.Tasks.Absinthe.Schema.Graphql

Generate a schema.graphql file

Usage

absinthe.schema.graphql [OPTIONS] [FILENAME]

Options

--schema The schema. Default: As configured for `:absinthe` `:schema`
--adapter Sets the adapter. Default: Absinthe.Adapter.LanguageConventions

Examples

Write to default path ./schema.graphql using the :schema configured for the :absinthe application, adapting it using the default Absinthe.Adapter.LanguageConventions adapter:

$ mix absinthe.schema.graphql

Write to default path ./schema.graphql using the MySchema schema, adapting it using the default Absinthe.Adapter.LanguageConventions adapter:

$ mix absinthe.schema.graphql --schema MySchema

Write to path /path/to/schema.graphql using the MySchema schema, adapting it using the default Absinthe.Adapter.LanguageConventions adapter:

$ mix absinthe.schema.graphql --schema MySchema /path/to/schema.graphql

Write to default path ./schema.graphql using the MySchema schema, adapting it using the Absinthe.Adapter.Passthrough adapter:

$ mix absinthe.schema.graphql --schema MySchema --adapter Absinthe.Adapter.Passthrough

Summary

Functions

Callback implementation for c:Mix.Task.run/1

Functions

run(argv)

Callback implementation for c:Mix.Task.run/1.