Skip to content

Latest commit

 

History

History

graphql-server

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

graphql-server

This is a simple server implementation to store/retrieve songs using GraphQL with Apollo.

Run the server

  • npm install
  • npm start

Run sample queries

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
    }
}