From the course: GraphQL for Enterprise Developers
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
Introducing the defer and stream directives - GraphQL Tutorial
From the course: GraphQL for Enterprise Developers
Introducing the defer and stream directives
- [Instructor] A graph field query typically travels through this architecture. We send a query from our client over here to a super graph. The super graph then collects the data from the sub graph, which goes to its own data source, and the super graph is responsible for delivering that data back in a single response. So a query generally gets things done like this. We send a query, we get some data back. A mutation, we're going to take in some data and change some data, and then we return some data. So the mutation for set lift status takes in a new name, new status, and returns back the data after that mutation operation has occurred. Subscriptions get things done by listening for data changes in real time. So if we send out a subscription, that data is going to come back. We're going to listen for any data changes. The GraphQL Spec has described these three different types of operations, and they've been pretty stable throughout all of GraphQL history. So we have queries…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.