Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter for nested object in nested array with several linked criteria #155

Open
3 tasks
vincjo opened this issue Jan 20, 2025 · 0 comments
Open
3 tasks
Assignees

Comments

@vincjo
Copy link
Owner

vincjo commented Jan 20, 2025

Experimental

Adding a new type of filter named "Query" which should handle this common use case.

This will also create a recursive filter in a tree, targeting a specific property.
As with "filters", "queries" are cumulative (✔️ multiple criteria).

Example:

table.createQuery('login_count')
    .from(['groups', 'users'])
    .where(check.isGreaterThan)
    .set(1000)

// will check if "user.login_count" is greater than 1000 in users in groups

TODO

  • Doc
  • Example
  • API design

réf. #115

@vincjo vincjo self-assigned this Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant