O'Reilly logo

Sails.js in Action by Mike McNeil

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 12. Embedded data and associations

This chapter covers

  • Using embedded records and associations to create relationships between models
  • Reducing duplicative code by creating a service
  • Understanding the differences between one-way and two-way associations

In chapter 11, we examined the new requirements of a market-based pivot that significantly enhanced and extended the features of Brushfire. We applied our frontend-first approach to the requirements. Using this approach compelled us to make design decisions in advance of implementing the backend, thereby reducing the likelihood of second-guessing based on inadequate information. Essentially, we wanted to eliminate questions that begin with “I didn’t know that....” Our work in chapter ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required