Ưu đãi trong tuần: Nhập mã UD50 giảm 50k cho đơn từ 300k!
Trang chủ
Menu

GraphQL by Example

GraphQL qua Ví dụ Thực tế

GraphQL qua Ví dụ Thực tế

Học GraphQL bằng cách xây dựng ứng dụng JavaScript full-stack với Node.js, Express, Apollo Server, React, Apollo Client.

4.7
(5,966 đánh giá)
38,108 học viên
Giảng viên
Mirko Nasato
Phụ đề Việt chất lượng cao Phụ đề tiếng Anh Bán chạy Đánh giá cao
50.000đ 1.559.000đ -97%
✓ Xem giỏ hàng và thanh toán
Bao gồm phụ đề tiếng Việt, tiếng Anh
8.5 giờ video
105 bài giảng
Truy cập vĩnh viễn
Học trên mọi thiết bị
Cập nhật: 18/03/2026

Bạn sẽ học được gì

Xây dựng máy chủ GraphQL dựa trên NodeJS, Express và Apollo Server
Gọi API GraphQL từ JavaScript bằng GraphQL-Request hoặc Apollo Client
Xử lý Xác thực/Phân quyền, Bộ nhớ đệm và nhiều tính năng khác
Nhận cập nhật thời gian thực với GraphQL Subscriptions

Yêu cầu

Hiểu biết tốt về JavaScript hiện đại, bao gồm ES6+ và NodeJS
Có kiến thức về Express và React là lợi thế nhưng không bắt buộc

Đối tượng phù hợp

Dành cho lập trình viên JavaScript muốn học GraphQL

Nội dung khóa học

14 phần • 104 bài giảng
1 GraphQL là gì
2 Công cụ cần thiết
3 Lời khuyên cho khóa học
1 Định nghĩa Schema
2 Apollo Server
3 Ngôn ngữ Query
4 GraphQL qua HTTP
5 GraphQL Client
6 Kho lưu trữ Github
7 Code-First vs Schema-First
8 Mã nguồn cuối cùng
1 Kiến trúc Job Board
2 Cập nhật: Công cụ Build React
3 Dự án Job Board
4 Kho lưu trữ Github
5 Cập nhật: Apollo Server v5
6 Apollo Server với Express
7 Custom Object Types
8 Mảng và Non-Nullability
9 Truy cập Cơ sở dữ liệu
10 Field Resolvers
11 Resolver Chain
12 Documentation Comments
13 Object Associations
1 Mã nguồn khởi đầu
2 GraphQL-Request
3 Component State trong React
4 Query Arguments
5 Query Variables
6 Bài tập: Company theo ID
7 Bidirectional Associations
8 Recursive Queries
1 Mã nguồn khởi đầu
2 GraphQL Errors
3 Custom Errors
4 Request States
1 Mã nguồn khởi đầu
2 Mutations
3 Input Types
4 Lưu ý: Reset Database
5 Mutation Requests
6 Bài tập: Xóa Job
7 Bài tập: Cập nhật Job
1 Mã nguồn khởi đầu
2 Luồng Xác thực
3 Resolver Context
4 User-Company Association
5 Client Authentication
6 Secure Delete
7 Bài tập: Secure Update
8 Nơi thực hiện Xác thực
1 Mã nguồn khởi đầu
2 Tính năng Apollo Client
3 Cập nhật: Apollo Client v4
4 Thiết lập Apollo Client
5 Phương thức Query
6 Phương thức Mutate và Auth Link
7 Apollo Client Cache
8 Fetch Policies
9 Cache Manipulation
10 Fragments
1 Mã nguồn khởi đầu
2 Hook useQuery
3 React Custom Hooks
4 Bài tập: useJob và useJobs
5 Hook useMutation
6 Kết quả useMutation
7 Bài tập: useCreateJob
1 Mã nguồn khởi đầu
2 Vấn đề N+1 Query
3 Batching với DataLoader
4 Per-Request Cache
1 Mã nguồn khởi đầu
2 Chiến lược Phân trang
3 Sắp xếp
4 Mệnh đề Limit
5 Mệnh đề Offset
6 Giao diện Phân trang Cơ bản
7 Tổng số lượng
8 Giao diện Phân trang Đầy đủ
9 Mã nguồn cuối cùng
1 Dự án Chat
2 Kho lưu trữ Github
3 Cập nhật Cache updateQuery
4 Định nghĩa Subscription
5 Cập nhật: Thay đổi Thư viện
6 GraphQL-WS Server
7 Subscription Resolver
8 GraphQL-WS Client
9 Hook useSubscription
10 Giao thức WebSocket
11 Connection Params
12 WebSocket Server Auth
13 Mã nguồn cuối cùng
1 Dự án Job Board TypeScript
2 Kho lưu trữ Github
3 Server Code Generator
4 Typed Resolvers
5 Typed Context
6 Chế độ Watch
7 Client Code Generator
8 Typed Queries
9 Mã nguồn cuối cùng
1 Chúc mừng

Giới thiệu khóa học

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.

Khóa học liên quan

Khám phá thêm các khoá học cùng chủ đề

Hiển thị tất cả khoá học Api Development
Hiển thị tất cả khoá học Graphql
Hiển thị tất cả khoá học Web Development
Zalo
Tôi có thể tư vấn khoá học cho bạn 😊