Search⌘ K
AI Features

Use Changesets Without Schemas

Explore creating Ecto changesets without schemas by using plain maps to define fields and types. Understand how to cast and validate data independently from databases, enabling efficient data handling for applications like advanced search forms.

We'll cover the following...

Up to this point, our changesets have been based on the schemas defined in our music_db application, such as Artist, Genre, and so forth. Changesets don’t actually need Ecto schemas, though. They can be created with plain maps that define field names and types. This means that we can ...