Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/palashmon/learn-graphql
Simple playground to learn and practice more about GraphQL
https://github.com/palashmon/learn-graphql
appolo express graphql learning nodejs
Last synced: about 1 month ago
JSON representation
Simple playground to learn and practice more about GraphQL
- Host: GitHub
- URL: https://github.com/palashmon/learn-graphql
- Owner: palashmon
- Created: 2019-06-08T14:26:16.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-04-12T04:35:15.000Z (9 months ago)
- Last Synced: 2024-04-12T12:13:33.397Z (9 months ago)
- Topics: appolo, express, graphql, learning, nodejs
- Language: JavaScript
- Homepage: https://graphql.org/
- Size: 3.99 MB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Learn GraphQL
This repo is a simple playground to learn and practice more about GraphQL using [this playlist](https://www.youtube.com/playlist?list=PL4cUxeGkcC9iK6Qhn-QLcXCXPQUov1U7f) by [The Net Ninja](https://www.youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg).
GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data. GraphQL provides a complete and understandable description of the data in your API, gives clients the power to ask for exactly what they need and nothing more, makes it easier to evolve APIs over time, and enables powerful developer tools.
## Stack
| Client | Server | Database | Testing Queries |
| ------------- | -------------- | -------- | --------------- |
| React | Node.js | MongoDB | GraphiQL |
| Apollo Client | Express | | |
| | GraphQL Server | | |## Content
- Express App Setup
- Setting up GraphQL
- GraphQL Schema
- Root Query
- The Resolve Function
- Testing Queries in Graphiql
- GraphQL ID Type
- Author Type
- Type Relations
- GraphQL Lists
- More on Root Queries
- Connecting to mLab
- Mongoose Models
- Mutations
- More on Mutations
- Updating the Resolve Functions
- GraphQL NonNull
- Adding a Front-end
- Create React App
- Book List Component
- Apollo Client Setup
- Making Queries from React
- Rendering Data in a Component
- Add Book Component
- External Query File
- Updating Component State
- Composing Queries
- query variables
- Re-fetching Queries
- Book Details Component
- Making a Single Query
- Styling the App