Обучающие видео » Компьютерные видеоуроки и обучающие интерактивные DVD » Программирование (видеоуроки)
Introduction to GraphQLГод выпуска: 2019
Производитель: frontendmasters.com
Сайт производителя:
https://frontendmasters.com/courses/graphql/Автор: Scott Moss
Продолжительность: 3 hours, 27 min
Тип раздаваемого материала: Видеоклипы
Язык: Английский
Описание: Learn how GraphQL empowers more flexibility into your APIs – and learn to build GraphQL APIs with Apollo Server! You'll create GraphQL Schemas using scalar types, object type, queries and mutations. Then create resolvers to fullfill the data. Use interfaces and unions. Finally, add authentication to lock down resources.
Code & Slides (Github) -
https://github.com/FrontendMasters/intro-to-graphqlSpecial note Access to courses was provided by one of the rutracker users who wants to stay anonymous let's say all thanks to him, and i just downloaded it[spoiler="Содержание"]
Table of Contents
Introduction
Introduction
00:00:00 - 00:02:56
Introduction
Scott introduces the course repo, and recommends tools that will be utilized in the course. -
https://github.com/FrontendMasters/intro-to-graphqlWhat is GraphQL?
00:02:57 - 00:08:26
What is GraphQL?
Scott defines the key points to know about GraphQL.
GraphQL vs REST
00:08:27 - 00:15:01
GraphQL vs REST
Scott contrasts GraphQL and REST because the two are often confused.
Course Code Overview
00:15:02 - 00:21:45
Course Code Overview
Scott goes over the package.json, environment variables, and a brief overview of what the rest of the course repository contains. The context of the API that will be created is also discussed.
GraphQL
GraphQL Basics & Starting the Server
00:21:46 - 00:27:44
GraphQL Basics & Starting the Server
Scott demonstrates how to create simple types in the schema, and starts the server.
GraphQL Playground
00:27:45 - 00:30:50
GraphQL Playground
Scott demonstrates some of the capabilities of the GraphQL playground.
GraphQL Exploration Exercise
00:30:51 - 00:32:27
GraphQL Exploration Exercise
Students are instructed to set aside 10 minutes to explore the code, and the GraphQL playground.
GraphQL Q&A
00:32:28 - 00:34:56
GraphQL Q&A
Questions are asked about the VSCode GraphQL extension, a clarification about the schemas and resolvers, and Apollo server's relation to Express.
GraphQL Exploration Review
00:34:57 - 00:37:43
GraphQL Exploration Review
Scott demonstrates how to create a type that is type String instead of an Object.
Schemas
GraphQL Schemas
00:37:44 - 00:41:03
GraphQL Schemas
Scott contrasts the GraphQL and database schemas.
Schema Definition Language
00:41:04 - 00:44:14
Schema Definition Language
Scott explains why a Schema Definition Language, or SDL, is the best way to create schemas.
Scalar & Object Types
00:44:15 - 00:48:56
Scalar & Object Types
Scott describes what scalars are and the object types that exist in GraphQL.
Validations: Non Nullable & List
00:48:57 - 00:51:25
Validations: Non Nullable & List
Scott demonstrates how to require that a field be populated by GraphQL.
GraphQL Cheat Sheet
00:51:26 - 00:52:10
GraphQL Cheat Sheet
Scott references a resource to utilize when constructing a GraphQL Schema.
Query & Mutation Types
00:52:11 - 00:56:18
Query & Mutation Types
Scott explains why queries and mutations are instrumental in a functional API.
Writing a Mutation Type
00:56:19 - 00:59:27
Writing a Mutation Type
Scott demonstrates how to write a mutation with an input type.
Create a Schema Exercise
00:59:28 - 01:02:53
Create a Schema Exercise
Students are instructed to create a schema that passes several tests that check for fields, queries, and mutations.
Create a Schema Solution
01:02:54 - 01:14:27
Create a Schema Solution
Scott live codes the solution to the exercise.
GraphQL Schemas Q&A
01:14:28 - 01:20:18
GraphQL Schemas Q&A
Questions are asked regarding where the GQL file gets used, if content is required to be returned, what the schema would look like in a real world application,
Resolvers
Resolvers
01:20:19 - 01:26:14
Resolvers
Scott introduces what Resolvers are, and why they matter.
Resolver Arguments
01:26:15 - 01:33:15
Resolver Arguments
Scott demonstrates how to start writing a resolver that takes a starting object, any arguments from the incoming request, context, and AST of the incoming request.
Errors in Resolvers
01:33:16 - 01:34:42
Errors in Resolvers
Scott explains how errors are handled in GraphQL.
Implimenting a Resolver
01:34:43 - 01:41:54
Implimenting a Resolver
Scott live codes several resolvers to demonstrate how the data is called.
Field Type Resolvers
01:41:55 - 01:46:04
Field Type Resolvers
Scott live codes field types underneath the resolvers.
Nested Resolvers
01:46:05 - 01:49:29
Nested Resolvers
Scott demonstrates how resolvers can reference other resolvers and return a value.
Relational Data
01:49:30 - 01:53:11
Relational Data
Scott demonstrates why GraphQL needs to be strongly typed by walking through an example involving relational data.
Query Errors
01:53:12 - 01:55:07
Query Errors
Scott demonstrates what an error looks like as a response from the API.
Info Resolver Argument
01:55:08 - 01:58:07
Info Resolver Argument
Scott shows the audience what the info argument looks like to give context to what is meant by an AST.
Resolvers Exercise
01:58:08 - 02:04:36
Resolvers Exercise
Students are instructed to create resolvers for the Queries and Mutations on the product type.
Resolvers Solution
02:04:37 - 02:15:06
Resolvers Solution
Scott live codes the solution to the exercise.
Resolvers Q&A
02:15:07 - 02:21:35
Resolvers Q&A
Scott answers questions from the audience about clarifications on the last exercise, including how Apollo is processing the schema, extending the current example, and usage of the spread operator in this case.
Interfaces
Interfaces
02:21:36 - 02:32:18
Interfaces
Scott explains how to utilize interfaces as a base type when types are very similar.
Unions
02:32:19 - 02:34:45
Unions
Scott explains how to utilize unions, which allow the user to return more than just one type.
Interfaces Exercise
02:34:46 - 02:39:05
Interfaces Exercise
Students are instructed to create an interface from the product type, then create types for each possible type.
Interfaces Solution
02:39:06 - 02:46:21
Interfaces Solution
Scott live codes the solution to the exercise.
Auth
Authentication
02:46:22 - 02:53:04
Authentication
Scott introduces several ways that authentication could take place.
Authentication Exercise
02:53:05 - 02:58:32
Authentication Exercise
Students are instructed to authenticate a request, and block requests when appropriate.
Authentication Solution
02:58:33 - 03:05:38
Authentication Solution
Scott live codes the solution to the exercise.
Advanced Topics
Testing with Jest
03:05:39 - 03:10:39
Testing with Jest
Scott gives an overview on how the tests were written for the course.
Caching & Performance
03:10:40 - 03:17:00
Caching & Performance
Scott gives references to resources, and strategies to handle caching, and improve performance.
Dates & Custom Scalars
03:17:01 - 03:18:27
Dates & Custom Scalars
Scott gives a reference to explore more on dates and custom scalars.
Layering GraphQL on REST
03:18:28 - 03:21:08
Layering GraphQL on REST
Scott gives thoughts on layering GraphQL on to of REST.
Sending Multiple Queries
03:21:09 - 03:22:49
Sending Multiple Queries
Scott demonstrates how to use an alias to perform two requests on a GraphQL server at the same time.
More GraphQL Tools & Services
03:22:50 - 03:27:20
More GraphQL Tools & Services
Scott gives examples of several products that will spin up a GraphQL API for you, tools to make GraphQL easy to work with anywhere, and other resources.
[/spoiler]
Файлы примеров: присутствуют
Формат видео: MP4
Видео: 1920x1080, 16:9, 23.98 fps, avg 1200 kb/s
Аудио: AAC, 48kHz, 127, stereo
[spoiler="Скриншоты"]

[/spoiler]