Edward's Tech Site
this site made with Next.js 13, see the code
HOWTO: Jul 27 - GraphQL
Notes on Ray Villalobos's Building a GraphQL Project with React.js course
- infos
- course online here:
- created 2021
- project I'm creating while working through this tutorial
- SECTION 1: Getting Started
- SECTION 2: GitHub's GraphQL Schema
- Exploring GraphQL
- get the information you need with less requests
- GitHub GraphQL API
- mine looks different
- basic infos still work through
- interface has changed
- he will cover authentication
- Building queries
- schema - how your data is structured
- type Repository
- two types of requests
- queries
- mutations
- this course only queries
- you don't need the word query
{
user(login: "edwardtanguay") {
login
location
bio
}
}
- viewer
{
viewer {
login
location
bio
}
}
- last 10 repositories of a user
{
user(login: "edwardtanguay") {
createdAt
name
repositories(last: 10) {
nodes {
id
name
createdAt
}
}
}
}
- edges is how we paginate
- GitHub authentication tokens
- GitHub Account
- Settings
- Developer settings
- Personal access tokens
- Tokens
- Generate new token
- Generate new token (classic)
- note:
GraphQL Site infogql
- select various read rights
- x make new site
- x add links back and forth
- x update tech site starters
- x remake this site based on context site
- SECTION 3: Working with GraphQL Data
- SECTION nnn: nnn