8000 Add support for exists predicate · Issue #8 · Blazebit/blaze-domain · GitHub
[go: up one dir, main page]

Skip to content

Add support for exists predicate #8

Open

Description

@beikov

Migrated from Blazebit/blaze-notify#22

I would count the exists predicate into the COLLECTION predicate types class. The use could look like this EXISTS (document.users.email = 'some@email.com' AND document.users.active)
The parenthesis are optional for a simple predicate but necessary if composite predicates should be considered in the exists predicate.
The semantics of this could be WHERE EXISTS(SELECT 1 FROM document.users u WHERE u.email = 'some@email.com' AND u.active = TRUE).
I would work on the query translation to make this work properly as I think this will be a very helpful tool for many use cases.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0