-
Notifications
You must be signed in to change notification settings - Fork 456
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
54ef638
commit 3505721
Showing
6 changed files
with
35 additions
and
48 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
11 changes: 6 additions & 5 deletions
11
core/src/test/resources/dev/morphia/test/aggregation/stages/set/example1/action.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
{ | ||
$set: { | ||
$set: { | ||
totalHomework: { $sum: "$homework" }, | ||
totalQuiz: { $sum: "$quiz" } | ||
} | ||
}, | ||
{ | ||
}, | ||
{ | ||
$set: { | ||
totalScore: { $add: [ "$totalHomework", "$totalQuiz", "$extraCredit" ] } } | ||
} | ||
totalScore: { $add: [ "$totalHomework", "$totalQuiz", "$extraCredit" ] } | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
core/src/test/resources/dev/morphia/test/aggregation/stages/set/example1/lock
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
moved a trailing brace to a new line where it belongs |