From f06b62d83532424e72893c56820f63cd1ca0b312 Mon Sep 17 00:00:00 2001 From: Simon El Nahas Date: Thu, 12 Dec 2024 15:46:21 +0100 Subject: [PATCH] docs: Fix exists query in expression docs (#1656) --------- Co-authored-by: Zach Daniel --- documentation/topics/reference/expressions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/topics/reference/expressions.md b/documentation/topics/reference/expressions.md index 6face9292..7aef9e085 100644 --- a/documentation/topics/reference/expressions.md +++ b/documentation/topics/reference/expressions.md @@ -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