Absinthe SDL v1.0.0 AbsintheSdl View Source
Convert the json output of an introspection query into Graphql SDL syntax.
Example
AbsintheSdl.encode!(Jason.decode!("swapi.json"))
Can be used to convert an Absinthe schema to SDL by using AbsintheSdl as the JSON encoder.
Example
mix absinthe.schema.json --schema MySchema --json-codec AbsintheSdl
Link to this section Summary
Functions
Partial implementation of JSON codec, enough to satisfy Absinthe when passing in AbsintheSdl as codec
Link to this section Functions
Link to this function
encode!(schema, opts \\ []) View Source
Partial implementation of JSON codec, enough to satisfy Absinthe when passing in AbsintheSdl as codec.
The schema passed in is the elixir representation of the json-result of an introspection query.