|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/creating-graphql-apis-with-aspnet-core-for-beginners/
课程评论:没有评论
**课程名称:** 为初学者创建 ASP.Net Core GraphQL API **课程概述:** 本课程将带领您入门 GraphQL API 的开发,重点在于使用 ASP.Net Core。GraphQL 是一种强大的 API 查询语言,它提供了直观且灵活的语法,让您能够轻松地查询和操作数据。与传统的 RESTful API 相比,GraphQL 允许客户端精确地指定所需的数据结构,从而优化网络利用率和性能,尤其是在移动设备上。 **课程内容亮点:** * **GraphQL 基础:** 理解 GraphQL 的核心概念及其与 RESTful API 的区别。 * **查询操作:** 学习创建基本的 GraphQL 查询,包括使用参数、别名、片段(Fragments)和内联片段(Inline Fragments)来精确选择数据。 * **动态数据获取:** 掌握使用变量(Variables)和指令(Directives)来传递数据和根据条件获取字段。 * **分页与排序:** 学会实现分页功能,以页为单位检索数据,并按指定顺序排序。 * **Schema 理解:** 深入了解 GraphQL Schema 的概念,以及 GraphQL 支持的各种类型。 * **Introspection:** 学习使用 Introspection 来获取 Schema 和类型相关的详细信息。 * **服务器端实现:** 使用 Entity Framework Core 和 GraphQL .NET 库创建服务器端项目。 * **数据修改(Mutations):** 学习如何使用 Mutations 进行数据的插入、更新和删除操作。 * **实时数据(Subscriptions):** 构建事件流,实现实时数据推送。 * **安全性:** 实现基于 JWT Identity 的身份验证,保护您的 API。 * **错误处理:** 掌握服务器端查询验证和异常处理机制。 * **客户端集成:** 使用 C# 语言从客户端项目执行 GraphQL 查询和 Mutations。 **目标受众:** 初学者,希望学习如何使用 ASP.Net Core 构建 GraphQL API 的开发者。
GraphQL is a language for APIs that enables you to query and manipulate data easily through an intuitive and flexible syntax.GraphQL is an open-source data query and manipulation language for APIs.GraphQL was developed internally by Facebook in 2012 before being publicly released in 2015.It is used in many server-side languages like Java, Node, Ruby, Python, PHP, Go, and obviously dotnet too. And APIs created using GraphQL can easily accessible by almost languages like JavaScript, Android, Swift, Python, PHP, Java, and dotnet.In a GraphQL request, you specify how to structure the data when it's returned by the server. This makes it possible for you to query only the data you need, in the format you need. This results in better network utilization and performance, especially on mobile devices.The course outline includes:Introduction to GraphQL. And understood how it's different from RESTful APIs.Create basic GraphQL queries. As well as with Arguments and aliases.Using fragments and inline fragments on the type to select specific fields.Using variables for passing data via query variable, and directives to obtain fields based on condition.Use paging to retrieve data as page wise and with sorting order.Understood what schema is and learn about each type supported by GraphQL.Use of Introspection for obtaining schema or type related details.Create a server-side project with Entity Framework core and GraphQL dotnet library.Use mutation for insert, update, or delete operation.Using subscription for creating an event stream.Implement Authentication for queries based on JWT Identity.Validation of query and Exception handing from the server-side.And executing queries and mutations from client-side project using C#.