GraphQL Phoenix Examples
Clone this repo and start your Phoenix app:
- Install dependencies with
- Create your development database using
mix ecto.create. NOTE: you may need to edit
config/dev.exsto set up your database configuration if it is not configured for passwordless logins on localhost.
- Setup your DB for the Ecto example with
mix run priv/repo/seeds.exs
- Start Phoenix endpoint with
Now you can visit
localhost:4000 from your browser.
Using plug_graphql with Phoenix is very simple.
Simply mount your GraphQL endpoint like so:
- Define your schema in
- Mount your endpoint