Skip to content

API Example made with Phoenix (V1.3) and Absinthe (GraphQL)

Notifications You must be signed in to change notification settings

nelsonic/phoenix-absinthe-graphql-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Phoenix GraphQL API Example

To start your Phoenix server:

  • Install dependencies with mix deps.get
  • Create and migrate your database with mix ecto.create && mix ecto.migrate
  • Start Phoenix endpoint with mix phx.server

Seed (dummy) data:

mix run priv/repo/seeds.exs

Now you can visit http://localhost:4000/graphiql from your browser.

Run the following GraphQL Query:

{
  blogPosts {
    title,
    id
  }
}

e.g: image

About

API Example made with Phoenix (V1.3) and Absinthe (GraphQL)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages