Skip to content

Commit

Permalink
docs: Fix exists query in expression docs (#1656)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: Zach Daniel <zachary.s.daniel@gmail.com>
  • Loading branch information
simonelnahas and zachdaniel authored Dec 12, 2024
1 parent 1aefc4e commit f06b62d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion documentation/topics/reference/expressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def has_comment_with_more_points_than(query, score) do
end

def has_comment_tagged(query, tag) do
Ash.Query.filter(query, exists(comments.tag.name == ^tag)
Ash.Query.filter(query, exists(comments.tag, name == ^tag))
end

Post
Expand Down

0 comments on commit f06b62d

Please sign in to comment.