-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add support for top level aggregates (#594)
* Rework count input objects Decouple them from host, cleaner for user, and allows reuse for top-level aggs * Remove sourceInfo param from Sum Minimal cost in re-getting, and makes it easier to call from other locations * Use switch instead of if for type check Switch will also gain a new case shortly * Remove unused type from createExpandedFieldAggregate * Use correct collection name Whilst they should have the same value at the moment, the disinction between the two becomes more important when introducing top-level aggregates * Extract out aggregate request logic to function Will be called multiple times once top-level aggregates are introduced * Remove legacy code This has been incorrect for a while, and will cause problems for top-level aggregates * Add support for top level aggregates
- Loading branch information
1 parent
f9d5c0b
commit 46ec563
Showing
14 changed files
with
809 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.