October 2019
Intermediate to advanced
358 pages
8h 22m
English
So far, our Ecto tour has been pretty basic. We’ve read and written repository data, but we still haven’t connected any schemas together. Relational databases like PostgreSQL are named that way for a reason. Dealing with related data is the defining characteristic of that whole family of databases, so management of relationships is the feature that makes or breaks any persistence layer. This chapter takes you on a deeper dive into Ecto by exploring how to tie our schemas together in the database.
Throughout this process, we’ll make some design decisions. Our contexts will continue to be the overarching API that our controllers will access. Sometimes those contexts will tie together united concepts. Other ...
Read now
Unlock full access