This repository has been archived by the owner on Jun 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Don’t want to use arrays in your aggregations? No problem, because this: ```javascript u.query({ select: { $sum: { $sum: [ {$max: ['tip', 'total’]}, {$min: ['quantity', 'total’]} ] }, } }) ``` … is now easier written like this: ```javascript u.query({ select: { $sum: { $sum: { $max: ['tip', 'total'], $min: ['quantity', 'total'] } }, } }) ``` - What’s that? Don’t like the verbosity of objects or arrays? Use the new string syntax! ```javascript universe.query({ select: { $sum: '$sum($max(tip,total), $min(quantity,total))' } }) ```
- Loading branch information
1 parent
9d698fe
commit be833d7
Showing
4 changed files
with
173 additions
and
56 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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.