Skip to content

josecis0216/GraphQL-API-Node-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prisma as your data modeling tool

context.js

Docker-based PostgreSQL, MySQL, or MongoDB as your data store

server.js

At least 3 Query resolvers to get data from your server

mutation.js

At least 2 Mutation resolvers allowing users to create, update, or upsert an item.

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

At least 1 Mutation resolver allowing users to delete an item.

mutation.js mutation deletePlayer { deletePlayer(id:"playerid") { name } }

Your datastore will contain at least 25 items

players.json

Your app will be deployable locally using Docker and will have seed data entered into the datastore.

seed.js

All of your source code will be properly uploaded to GitHub

Github

Your ReadMe file will accurately describe your server install and run process and how to use the APIs

  1. npm run launchDocker gets the docker container built
  2. npm run createDB creates the database with local json file
  3. npm run seed runs the seed file containing code to link prisma to db
  4. npm run dev gets the nexus data store running
  5. npm start starts the graphql playground to run queries

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors