View Source AbsintheSdl (Absinthe SDL v1.1.0)
Convert the json output of an introspection query into Graphql SDL syntax.
example
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-1
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
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.