This repository has been archived on 2024-06-24. You can view files and clone it, but cannot push or open issues or pull requests.
graphql-lightning-talk/README.md

25 lines
924 B
Markdown
Raw Normal View History

# Getting started with Absinthe
2018-04-08 08:48:56 +12:00
[Absinthe](https://absinthe-graphql.org/) is an open source implementation of
the GraphQL server specification for Elixir. Note that I said "Elixir" there
and now "Phoenix". Absinthe doesn't need Phoenix, but we're going to use it in
this example because my guess is that not many people are making purely GraphQL
services and most of us are probably bolting it on to existing sites or
services.
2018-04-08 08:48:56 +12:00
Absinthe has [truly amazing docs](https://hexdocs.pm/absinthe/overview.html).
Seriously. They're so great. You should check them out.
2018-04-08 08:48:56 +12:00
In this branch we've added Absinthe to our project, and configured a type and a
schema for our list of people, and a migration which can import new people.
Look at:
* `mix.exs`
* `lib/faces_web/router.ex`
* `lib/faces_web/schema/schema.ex`
* `lib/faces_web/schema/person.ex`
* `lib/faces_web/resolvers/people.ex`
[Demo](http://localhost:4000/graphiql)