josterholt / apollo-test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Apollo GraphQL Music App

A sample Apollo GraphQL server. Exposes API endpoint to fetch a list of albums.

Technical Stack

Getting Started

  1. Spin up MySQL Server (optional if database already exists)
docker compose up
  1. Install dependencies and run app
yarn install
yarn start
  1. Explore GraphQL Playground
  • Open browser and navigate to http://localhost:4000 (Apollo Playground)
  • Explore SCHEMA tab to the right of the screen.
  • Run queries from the left hand side pane.

Types

  • Album
  • Artist

Sample GraphQL Query

query GetAlbumAndArtist {
  albums {
    name
    artists {
    	name
  	}
  }
}

Additional Documentation

How it works

About


Languages

Language:JavaScript 100.0%