|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/graphql-by-example/
课程评论:没有评论
课程名称:通过示例学习GraphQL 概述: 越来越多的团队选择GraphQL作为其网络API(或与REST一起使用)。GraphQL查询为客户端请求服务器数据提供了极大的灵活性,避免了数据过度获取和不足获取的问题,并允许在一次请求中检索多个资源。在本课程中,您将通过全栈JavaScript应用程序的实际示例学习如何在服务器端和客户端应用程序中使用GraphQL。课程将介绍所有主要的GraphQL概念,包括架构定义、查询、变更和订阅,以及处理常见需求的解决方案,如身份验证/授权和客户端缓存。示例将使用Node.js和Express的Apollo Server作为后端,使用React作为前端,GraphQL-Request作为初始的GraphQL客户端,然后再使用Apollo Client。此外,GraphQL-WS用于订阅。然而,课程的目标不仅是覆盖特定的GraphQL库,而是让您对基础概念有更一般的理解。例如,在学习如何手动编写简单客户端后,才介绍GraphQL客户端库,以确保您理解GraphQL over HTTP的格式。本课程假设您对现代JavaScript有良好的了解,并且最好对Node.js/Express和React有一些熟悉。 总结: 通过这门课程,学员将深入了解GraphQL的核心概念及其在实际开发中的应用,从而为进一步的前端和后端开发打下良好基础。
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.