RiddlerGraphQL gives a host Absinthe types and fields for serving Riddler Journeys over GraphQL. Riddler answers what one visitor sees at one step of a Journey; this package will expose that answer as GraphQL types a host imports into its own existing schema. It defines no schema and no endpoint of its own.
A host that serves a Journey over GraphQL would otherwise write the same types for every screen, question and finding, and keep them in step with Riddler's vocabulary by hand. Putting those types in one package keeps a patron-registration screen shaped the same wherever it is served, and keeps the host to what is its own: the schema, the transport, who may see a Journey and what happens when a visitor submits.
This version is a scaffold. It defines no types or fields yet, and the package stays at 0.0.0 until its first release.
Add riddler_graphql to the dependencies in your mix.exs:
def deps do
[
{:riddler_graphql, "~> 0.0.0"}
]
endPre-1.0. The public API is still moving, and a minor version may break it. Pinning to an exact minor -
~> X.Y.0- is the recommended way to consume the package until 1.0.
There is nothing to call yet. Fetching the package and compiling it is the whole of what it does at this version:
mix deps.get
mix compileThe first release will let a host import types into its own Absinthe schema and serve a patron registration screen from the answer Riddler gives for one step of a Journey.
- Look up
- The changelog: what changed in each version.
- Riddler: the package whose answers this one serves.
- Absinthe: the GraphQL engine a host's schema runs on.
RiddlerGraphQL needs Elixir 1.18 or later (elixir: "~> 1.18"). It has two
runtime dependencies: riddler ~> 0.9,
which presents each step of a Journey, and
absinthe ~> 1.12, the GraphQL engine.
Nothing in the statifier family is a dependency: a host wires its execution
engine to this package, never the reverse.
MIT. See LICENSE.