https://github.com/khofesh/express-react-graphql
updated version
https://github.com/khofesh/express-react-graphql
Last synced: 8 months ago
JSON representation
updated version
- Host: GitHub
- URL: https://github.com/khofesh/express-react-graphql
- Owner: khofesh
- Created: 2022-03-15T16:01:44.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-16T03:48:43.000Z (over 4 years ago)
- Last Synced: 2025-10-01T17:59:11.124Z (9 months ago)
- Language: JavaScript
- Size: 700 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```shell
docker run --name fdm-mongo -p 27017:27017 -d mongo
```
## lyrical-graphql `localhost:4000/graphql`
```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
}
}
}
```