Ecto usage patterns

Completely agree, I love the explicitness but I do feel like sometimes that you have to jump through a lot of hoops. But I would say don’t be afraid to write higher level abstractions!

I wrote ecto_morph to help with things like that, take a look if you are interested GitHub - Adzz/ecto_morph: morph your Ecto capabilities into the s t r a t o s p h e r e ! · GitHub

But it would be totally acceptable to create Active Record style helpers if you needed / wanted them in your application.

1 Like