This is a simple server implementation to store/retrieve songs using GraphQL with Apollo.
npm install
npm start
Start the server & access the GraphQL Playground IDE, e.g. on localhost:4000
.
To query songs:
query {
songs {
_id
title
keyStrokes
}
}
To add a song:
mutation {
addSong(title: "Some new song", keyStrokes: ["D", "E", "F"]) {
_id
title
keyStrokes
}
}