datatables icon indicating copy to clipboard operation
datatables copied to clipboard

Filter for nested object in nested array with several linked criteria

Open vincjo opened this issue 11 months ago • 0 comments

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 avatar Jan 20 '25 10:01 vincjo