Skip to content

Relation counts and filters: _count, some, every, none #80

Open

Description

@artile

Signal

As part of the relational API, we want:

  • Relation counts in a select: { tourCount: count(rel.tours) }.
  • Relation filters: exists / notExists helpers with correlated subqueries that read like some, every and none.

Why (MyRemotely)

  • 104 _count uses and 39 some / every / none filters in our production code.
  • Drizzle needs raw sql or manual subqueries for most of these.

Part of #52: the CAFE-stack roadmap signal from MyRemotely. This shows the direction we want, and it is not a demand. We can send a PR if you accept the idea.

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