4 ms·
I've found it a bit challenging to wrap my head around many-to-many associations in Ecto..
by deathtrader666 6y ago
I've found it a bit challenging to wrap my head around many-to-many associations in Ecto..
- AlchemistCamp 6y agoCoincidentally, I've been working on a screencast series on YouTube the past couple of weeks and the very next video in it will cover setting up many-to-many associations and has-many-through associations. I just shared it here: https://news.ycombinator.com/item?id=25066424 https://news.ycombinator.com/item?id=25066424
- elcritch 6y agoExcellent! The many-to-many relationships in Ecto still confuse me. Though, in my defense, most of my work is using embedded KV not SQL so Ecto is only for the UI form stuff.
- asenna 6y agoCame across Alchemist.camp a few weeks ago when I was starting out learning Phoenix - they're awesome, nice work! Would recommend people checkout the list: https://alchemist.camp/episodes https://alchemist.camp/episodes
- dugmartin 6y agoFor some meta info about Alchemist.camp the author is part of a two-person podcast where he talks about it here: https://reactor.am/podcasts https://reactor.am/podcasts I've been listening to the other person on the podcast (Justin Vincent) other podcast, Techzing, for many years.
- malloryerik 6y agoYou might also find help in the free and very good "Little Ecto Cookbook". See "Constraints and Upserts" as well as "Polymorphic associations with many to many". https://dashbit.co/ebooks/the-little-ecto-cookbook https://dashbit.co/ebooks/the-little-ecto-cookbook