Welcome to GraphQL Elixir!
A better way to build blazing fast APIs.
Hello World Example
This is the simplest possible schema definition with a single entry point working against hard-coded values.
- Schema definition
- Simplest possible query
- Parameterise greeting query by name
Simple Blog Example
A simple schema definition with a variety of data types.
Hint: Try out the auto-complete of the queries and explore the documentation!
Simple Ecto Example
A variant of the Hello World schema definition using an Ecto-driven PostgreSQL datastore.
- Schema definition
- Greet a person fetched by ID
- Greet a person fetched by name
Star Wars Example
A more complex schema containing Enum types and Interfaces. Data is stored in memory.
Note the use of type introspection using the `__typename` field.
Resources
- GraphQL Plug Hex Package
- GraphQL Plug Docs
- GraphQL Plug Source
- GraphQL Core Hex Package
- GraphQL Core Docs
- GraphQL Core Source
- GraphQL Spec
Help
- Erlang channel on the GraphQL Slack