Hi Ricardo,

Yeah, there's not much info on that since that's a new API. `exists()` is a
terminal operator that converts the whole expression to an EXISTS query.

So it would be something like this in your
example: Artist.PAINTINGS.dot(Painting.NAME).like("painting%").exists()


On Fri, Sep 26, 2025 at 8:31 PM Ricardo Parada <[email protected]>
wrote:

> Hi all,
>
> Another question I have is regarding EXISTS expressions.  I’m not sure if
> I’m using the API correctly, but I was thinking it would be something like
> this.  Using the entities from the Tutorial, let’s say I want to fetch the
> Artist’s that have a painting starting with the letter ‘G’:
>
> Expression e = Artist.PAINTINGS.exists(Painting.NAME.like(“G%”));
>
> But I’m getting a syntax error.



-- 
Best regards,
Nikita Timofeev

Reply via email to