Elixir Mix cover image

Design Pattern in Elixir with Sergey Chechaev - EMx 212

Elixir Mix

00:00

How to Use an Embedded Schema to Validate Data Before It Is Sent to the Controller

It's like actually what we call that, where you have this use keyword and you pass in a second argument like for your controller, for your view, et cetera. And you have one called params and that's one's going to make the acto schema. And it creates this function called fetch. The fetch one, I did not quite understand what the point of that one was. That one? Yeah, just helper. You can add other function or don't use it at all. It seems like a little bit what you're doing in here now.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app