mutation.js mutation createPlayer { createPlayer(name:"Neymar Jr", position:"Attacker", dob:"1989-28-11", nationality:"Brazil", currentTeam:"Paris Saint Germain", jerseyNumber:"11") { name currentTeam jerseyNumber } } mutation updatePlayer { updatePlayer(id:"playerid", currentTeam:"Piemonte Calcio") { id name currentTeam } }
mutation.js mutation deletePlayer { deletePlayer(id:"playerid") { name } }
Your app will be deployable locally using Docker and will have seed data entered into the datastore.
Your ReadMe file will accurately describe your server install and run process and how to use the APIs
- npm run launchDocker gets the docker container built
- npm run createDB creates the database with local json file
- npm run seed runs the seed file containing code to link prisma to db
- npm run dev gets the nexus data store running
- npm start starts the graphql playground to run queries