|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/graphql-with-nodejs-from-beginner-to-advanced-concepts/
课程评论:没有评论
**课程名称:** GraphQL with NodeJs: From Beginner to Advanced Concepts **课程概述:** 本课程将深入介绍 GraphQL,一种高效、健壮且灵活的 API 标准,作为 REST 的有力替代方案。Grapsl 由 Facebook 开发并开源,由全球众多公司和个人维护。API 在软件基础设施中扮演着至关重要的角色,决定了客户端如何从服务器加载数据。GraphQL 的核心在于声明式数据获取,允许客户端精确指定所需数据。与 REST 的多个固定数据结构端点不同,GraphQL 服务只有一个端点,并只返回客户端请求的数据。 **GraphQL 相较于 REST 的优势:** 1. **应对移动端需求:** 随着移动设备使用量的增加、低性能设备以及网络不稳定的情况, aQL 为 Facebook 开发提供了初衷。GraphQL 最大限度地减少了网络传输的数据量,显著提升了在这些条件下的应用程序性能。 2. **适应多样化的前端框架和平台:** 客户端应用程序运行在各种前端框架和平台上,这使得构建一个满足所有需求的 API 变得困难。GraphQL 允许每个客户端根据自身需求精确访问数据。 3. **快速开发与功能迭代:** 持续部署已成为许多公司的标准,快速迭代和频繁的产品更新变得不可或缺。在 REST API 中,服务器暴露数据的方式常常需要根据客户端的具体需求和设计变更进行调整,这阻碍了快速开发实践和产品迭代。 **课程内容:** 本课程将涵盖以下主题: * GraphQL 与 Node.js 的入门 * 使用 GraphQL、Node.js 和 MongoDB 进行 CRUD 操作 * GraphQL、Node.js 与 MongoDB 中的认证与授权 * GraphQL 中的分页、过滤和排序(结合 Node.js 和 MongoDB) * GraphQL 中的 Fragments、Interfaces 和 Unions * GraphQL 中的 Subscriptions 和 Data Loaders * GraphQL 中的缓存和批处理 * 使用 Jest 对 GraphQL 和 Node.js 进行测试
GraphQL is a new API standard that provides a more efficient, robust and flexible alternative to REST. It was developed and open-sourced by Facebook and is now maintained by a large community of companies and individuals from all over the world. APIs have become ubiquitous components of software infrastructures. In short, an API defines how aclient can load data from a server. At its core, GraphQL enables declarative data fetching where a client can specify exactly what data it needs from an API. Instead of multiple endpoints that return fixed data structures, a GraphQL server only exposes a single endpoint and responds with precisely the data a client asked for. How GraphQL is better than REST 1. Increased mobile usage creates need for efficient data loading Increased mobile usage, low-powered devices and sloppy networks were the initial reasons why Facebook developed GraphQL. GraphQL minimizes the amount of data that needs to be transferred over the network and thus majorly improves applications operating under these conditions. 2. Variety of different frontend frameworks and platforms The heterogeneous landscape of frontend frameworks and platforms that run client applications makes it difficult to build and maintain one API that would fit the requirements of all. With GraphQL, each client can access precisely the data it needs. 3. Fast development & expectation for rapid feature development Continuous deployment has become a standard for many companies, rapid iterations and frequent product updates are indispensable. With REST APIs, the way data is exposed by the server often needs to be modified to account for specific requirements and design changes on the client-side. This hinders fast development practices and product iterations.What you will learn? This course will cover these following topics Getting Started with GraphQL and NodeJsCURD Operations with GraphQL, NodeJs, and MongoDBAuthentication and Authorization in GraphQL, NodeJs and MongoDBPagination, Filtering, And Sorting in GraphQLFragments, Interfaces, and Unions in GraphQLSubscriptions and Data Loaders in GraphQLCaching and Batching in GraphQLTesting with Jest in GraphQL and NodeJs