Fetching Relationships

You’ll learn how to fetch relationships using the fetchRelated method in this lesson.

We'll cover the following

Adding fetchRelated

We’re making great strides. The only place outside the catalog where we do a manual fetch is in the songs route where we query the relationship URL previously stored for the band. You know the drill. Since we make all network requests through the catalog service, we’ll refactor them by adding a method onto the service and using it in the songs route.

How about fetchRelated for the method name?

Get hands-on with 1200+ tech skills courses.