You can introspect your schema using
as described in the specification.
Seeing the names of the types in the schema:
Getting the name of the queried type:
Getting the name of the fields for a named type:
Note that you may have to nest several depths of
type information includes any wrapping layers of List
The GraphiQL project is “an in-browser IDE for exploring GraphQL.”
Absinthe provides GraphiQL via a plug in
absinthe_plug. See the Plug and Phoenix Guide
for how to install that library. Once installed, usage is simple as
If you want to use it at a particular path (in this case
graphiql in your Phoenix
router, simply do
This can be trivially reserved to just the
:dev elixir environment by doing:
If you’d prefer to use a desktop application, we recommend using the pre-built Electron-based wrapper application, GraphiQL.app.
GraphQL Hub is an interesting website that you can use to introspect a number of public GraphQL servers, using GraphiQL in the browser and providing useful examples.