https://github.com/vertikajain/first-graphql-project
Example of GraphQL in NodeJS and ReactJS using Apollo Client and GraphiQL.
https://github.com/vertikajain/first-graphql-project
apollo-client cors express graphiql graphql nodejs reactjs
Last synced: 3 months ago
JSON representation
Example of GraphQL in NodeJS and ReactJS using Apollo Client and GraphiQL.
- Host: GitHub
- URL: https://github.com/vertikajain/first-graphql-project
- Owner: VertikaJain
- Created: 2023-05-11T13:15:42.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-06-30T07:39:22.000Z (almost 2 years ago)
- Last Synced: 2025-01-18T07:13:04.010Z (5 months ago)
- Topics: apollo-client, cors, express, graphiql, graphql, nodejs, reactjs
- Language: JavaScript
- Homepage:
- Size: 183 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GraphQL for NodeJS
## Tools used
1. Visual Studio Code for NodeJS and ReactJS
2. Compass for MongoDB## Query Example
`{
authors {
name
age
books {
name
genre
}
}
}`## Mutation Example
`mutation {
addBook(name: "coding skills", genre: "tech", authorId: "646f026c0a60750fa3592095") {
name
genre
authorId
}
}`### Resource followed for this mini-project:
1. [Net Ninja series for GraphQL](https://www.youtube.com/watch?v=Y0lDGjwRYKw&list=PL4cUxeGkcC9iK6Qhn-QLcXCXPQUov1U7f&index=1)
2. [Apollo Client Doc - Queries](https://www.apollographql.com/docs/react/data/queries)
3. [Apollo Client Doc - Mutations](https://www.apollographql.com/docs/react/data/mutations)