2min chapter

Elixir Wizards cover image

Mark & David from Thinking Elixir on Ecto Queries

Elixir Wizards

CHAPTER

Is There a Sub Select in Ecto?

There's this thing that I am missing from Ecto that just is not supported. And I would love to see it. Sometimes I wish I could do a, so in the select where you say, I'm going to select from a field, that field name can be a select. But it's just not supported in Ecto. So when you need to do that now, are you writing a string SQL query or are you just not able to do it? Do you have to do it inSQL and Ecto, but not in the select? Oh, maybe you can use select merge. Yeah. Although you get kind of object oriented there. That's okay.

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