Added `addAggs()` method Query. Fixes #4451

fixes #4451