A sample Apollo GraphQL server. Exposes API endpoint to fetch a list of albums.
- NodeJS
- Apollo Server (GraphQL)
- Sequelize (ORM)
- MySQL Database Server (run in Docker)
- Spin up MySQL Server (optional if database already exists)
docker compose up
- Install dependencies and run app
yarn install
yarn start
- 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.
- Album
- Artist
query GetAlbumAndArtist {
albums {
name
artists {
name
}
}
}