You're seeing just the function having, go back to AbacusSql module for more information.


having(Ecto.Query.t(), t()) :: Ecto.Query.t()

Adds the given filter to the havings list.

Make sure that the query has at least one group_by clause.

The advantage is that it can filter inside has_many assocs using aggregation such as count, min or max.

For example: having(BlogPost, "count(author.posts.id) > 10") would filter for blog posts whose authors have at least 10 posts.