Skip to content

khofesh/express-react-graphql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GraphQL with React: The Complete Developers Guide

https://www.udemy.com/course/graphql-with-react-course/

changes I made:

  1. .mjs
  2. some API changes in graphql
  3. mongodb in local container
  4. functional components
  5. @apollo/client -> useMutation & useQuery
  6. react-router 6

mongodb

docker run --name fdm-mongo -p 27017:27017 -d mongo

lyrical-graphql localhost:4000/graphql

mutation {
  addSong(title: "Cold Night") {
    id
  }
}

mutation {
  addLyricToSong(
    content: "oh my oh my it's a cold night"
    songId: "62309b2577d41d1d22a115c8"
  ) {
    id
  }
}

{
  songs {
    id
    title
    lyrics {
      content
    }
  }
}

About

updated version

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published