Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
lib
 
 
 
 
 
 
web
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

GraphQL Phoenix Examples

Build Status Public Slack Discussion

This is a Phoenix app containing examples of how to use plug_graphql which in turn uses the GraphQL Elixir Core

Installation

Clone this repo and start your Phoenix app:

  1. Install dependencies with mix deps.get
  2. Create your development database using mix ecto.create. NOTE: you may need to edit config/dev.exs to set up your database configuration if it is not configured for passwordless logins on localhost.
  3. Setup your DB for the Ecto example with mix ecto.migrate and mix run priv/repo/seeds.exs
  4. Start Phoenix endpoint with mix phoenix.server

Now you can visit localhost:4000 from your browser.

Examples

Using plug_graphql with Phoenix is very simple.

Simply mount your GraphQL endpoint like so:

  1. Define your schema in web/graphql (see https://github.com/graphql-elixir/hello_graphql_phoenix/tree/master/web/graphql)
  2. Mount your endpoint

Resources

About

Examples of GraphQL Elixir Plug endpoints mounted in Phoenix

Resources

License

Releases

No releases published

Contributors 4

  •  
  •  
  •  
  •  
You can’t perform that action at this time.