Setting up a has_many relationship through another resource?

For instance, how do you translate this Ecto query?
has_many(:comments, through: [:posts, :comments])
has_many(:comments, through: [:posts, :comments])
I couldn't find any mention of this in the docs (only for many_to_many)
2 Replies
jonas_h
jonas_hOP3mo ago
Oh, so the idea is to use no_attributes? and a filter to get the same behavior. I'll try that later, thanks!

Did you find this page helpful?