6min chapter

Elixir Wizards cover image

Mark & David from Thinking Elixir on Ecto Queries

Elixir Wizards

CHAPTER

Elixir

The context module is like the orchestration, you know, bit. The actual database hit will go into the context module typically. You're not calling repo dot all or repo dot one at the end of your queries. That way they can kind of be composed and combine up to a larger query. What is the pin operator? Why do we need it? I thought it was some elixir language, like special operator thing,. But it's not. It's just the way that Ecto parses the AST.

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