Skip to content

Filter child collection based on count #22

@jgornick

Description

@jgornick

We've run into a scenario lately where we're trying to filter a collection based on the count of a child collection.

For example, we want to filter users who are assigned to groups. Based on the OData specification, the $count query option or length operator are available to get counts on collections.

For reference how to use these, refer to:

Does anyone have thoughts on how something like this might be implemented to a Sequelize query?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions