How to create new associations if they do not exist, and ignore if they already do?

There’s an example of implementing article tags exactly like this in the free Ecto cookbook, under “Upserts and insert_all”: The Little Ecto Cookbook (self-published) (free)

4 Likes