Skip to content

michaeltomasik/backend-piano

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Apollo Server

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

Run the server

  • cd apollo-server and 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
        keysPlayed
    }
}

To add a song:

mutation {
    addSong(title: "Some new song", keysPlayed: ["D", "E", "F"]) {
        title
        keysPlayed
    }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published