In Rails Controller, you frequently see the code bellow in order to get only posts that belong to the current_user;
class PostsController < APIController
def show
current_user.posts.find(params[:id])
end
end
What's is the best way to express that with Ecto?