Open esmarkowski opened 8 months ago
.aggregation and .filter support receiving arguments as an array.
.aggregation
.filter
It's rarely used except when constructing dynamic aggs and filters. However, just need some tests making sure it still works.
### Tasks - [ ] Documentation - [ ] Tests
Should allow:
Model.aggregation({:route=>{:terms=>{:field=>:route}, :aggs=>{:operator=>{:terms=>{:field=>:operator}}}}})
As a direct pass-through
.aggregation
and.filter
support receiving arguments as an array.It's rarely used except when constructing dynamic aggs and filters. However, just need some tests making sure it still works.