2min chapter

Elixir Mix cover image

Design Pattern in Elixir with Sergey Chechaev - EMx 212

Elixir Mix

CHAPTER

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

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode