From the course: Learning Apollo
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Update components for subscriptions
- [Instructor] So we now have proof of life from our server with subscriptions, so next we'll start updating our code for clients so we can begin using subscriptions for adding new notes. Let's get to it. First thing I want you to do is reorganize our client a little bit. So open the folder crm and then go inside of client, and then src. And you can do this directly inside of your editor, but I prefer doing it with the folders like this when it's just moving files inside of a folder. So we'll create a src folder and then move all the components and the CSS files that are related to it inside of that source. So App.test, as well, Contacts, and let's just leave index outside of the src folder. And then just drag and drop them inside of our src folder. Alright, so that move obviously breaks our application, so we want to make sure we fix App and it works properly. So let's go ahead and inside of VS Code go inside of your client, and then src, and then go inside of App. And make sure that…
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.
Contents
-
-
-
-
-
-
(Locked)
Introduction to subscriptions and schema9m 18s
-
(Locked)
Update resolvers for subscriptions10m 22s
-
(Locked)
Update components for subscriptions9m 6s
-
(Locked)
Create a custom resolver on client6m 2s
-
(Locked)
Add new contact header component5m 14s
-
(Locked)
Connect subscription with contact single14m 18s
-
(Locked)
Adding new notes with mutations15m 47s
-
(Locked)
Finalizing project with a beauty pass12m 13s
-
(Locked)
-