
Design Pattern in Elixir with Sergey Chechaev - EMx 212
Elixir Mix
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.
00:00
Transcript
Play full episode
Remember Everything You Learn from Podcasts
Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.