Course Overview
More and more teams are choosing GraphQL instead of (or along with) REST for their web APIs. GraphQL queries give clients great flexibility in the way they request data from the server, preventing issues such overfetching or underfetching of data, and allowing multiple resources to be retrieved in a single request.
In this course you'll learn how to use GraphQL both on the server side and in client applications through practical examples in the form of full-stack JavaScript applications. You will be introduced to all the main GraphQL concepts like schema definition, Queries, Mutations, and Subscriptions, as well as to solution to common requirements such as handling authentication/authorization and client-side caching.
The examples use Apollo Server with Node.js and Express on the backend and React on the frontend, with GraphQL-Request first, then Apollo Client as GraphQL clients. GraphQL-WS is used for subscriptions.
The aim however is not just to cover specific GraphQL libraries, but to give you a more general understanding of the underlying concepts. For instance, GraphQL client libraries are introduced only after learning how to write a simple client "by hand", to make sure you understand the GraphQL over HTTP format.
This course assumes good knowledge of modern JavaScript, and ideally some familiarity with Node.js/Express and React.
FAQ
FAQ area empty
Course curriculum
-
Job Board Architecture
Xem trước -
Update: React Build Tool
-
Job Board Project
Xem trước -
Github Repository
-
Update: Apollo Server v5
-
Apollo Server with Express
Xem trước -
Custom Object Types
Xem trước -
Arrays and Non-Nullability
Xem trước -
Database Access
Xem trước -
Field Resolvers
Xem trước -
Resolver Chain
Xem trước -
Documentation Comments
Xem trước -
Object Associations
Xem trước
-
Chat Project
Xem trước -
Github Repository
-
Cache updateQuery
Xem trước -
Subscription Definition
Xem trước -
Update: Library Changes
-
GraphQL-WS Server
Xem trước -
Subscription Resolver
Xem trước -
GraphQL-WS Client
Xem trước -
UseSubscription Hook
Xem trước -
WebSocket Protocol
Xem trước -
Connection Params
Xem trước -
WebSocket Server Auth
Xem trước -
Final Code
Requirment
-
Good knowledge of modern JavaScript, including ES6+ and NodeJS
-
Some knowledge of Express and React preferable but not strictly required
Outcomes
-
Build a GraphQL server based on NodeJS, Express and Apollo Server
-
Call GraphQL APIs from JavaScript using GraphQL-Request or Apollo Client
-
Handle Authentication/Authorization, Caching, and more
-
Receive real-time updates with GraphQL Subscriptions
2 Students
2 Courses
0 review