April 2019
Beginner to intermediate
244 pages
6h 34m
English
At the end of the last chapter, we saw how schemas provide a quick method for inserting new records into the database, even with associated records. But a database is only as good as the quality of the data that it contains, so we need to be careful about the modifications we make to that data. The Ecto.Changeset module provides a rich data structure and a wide array of functions that helps us manage making changes safely and securely.
In this chapter, we will take a deep dive into the world of changesets. We will start by taking a high-level look at the process of making a change, then look at each step of the process in detail: casting and filtering user-provided data, validating the data, and capturing ...
Read now
Unlock full access