-
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
62d8514
commit 2c1e1fb
Showing
10 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
core/src/test/resources/dev/morphia/test/aggregation/stages/lookup/example7/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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
$lookup: { | ||
from: "cakeFlavors", | ||
pipeline: [ { $documents: [ {} ] } ], | ||
as: "test" | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
core/src/test/resources/dev/morphia/test/aggregation/stages/lookup/example7/data.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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ "_id" : 1, "item" : "almonds", "price" : 12, "quantity" : 2 }, | ||
{ "_id" : 2, "item" : "pecans", "price" : 20, "quantity" : 1 }, | ||
{ "_id" : 3 } |
6 changes: 6 additions & 0 deletions
6
core/src/test/resources/dev/morphia/test/aggregation/stages/lookup/example7/data1.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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ "_id" : 1, "sku" : "almonds", "description": "product 1", "instock" : 120 }, | ||
{ "_id" : 2, "sku" : "bread", "description": "product 2", "instock" : 80 }, | ||
{ "_id" : 3, "sku" : "cashews", "description": "product 3", "instock" : 60 }, | ||
{ "_id" : 4, "sku" : "pecans", "description": "product 4", "instock" : 70 }, | ||
{ "_id" : 5, "sku": null, "description": "Incomplete" }, | ||
{ "_id" : 6 } |
1 change: 1 addition & 0 deletions
1
core/src/test/resources/dev/morphia/test/aggregation/stages/lookup/example7/name
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 @@ | ||
Namespaces in Subpipelines |
5 changes: 5 additions & 0 deletions
5
core/src/test/resources/dev/morphia/test/aggregation/stages/unionWith/example4/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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
$unionWith: { | ||
coll: "cakeFlavors", | ||
pipeline: [ { $documents: [] } ] } | ||
} |
6 changes: 6 additions & 0 deletions
6
core/src/test/resources/dev/morphia/test/aggregation/stages/unionWith/example4/data.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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ store: "General Store", item: "Chocolates", quantity: 150 }, | ||
{ store: "ShopMart", item: "Chocolates", quantity: 50 }, | ||
{ store: "General Store", item: "Cookies", quantity: 100 }, | ||
{ store: "ShopMart", item: "Cookies", quantity: 120 }, | ||
{ store: "General Store", item: "Pie", quantity: 10 }, | ||
{ store: "ShopMart", item: "Pie", quantity: 5 } |
9 changes: 9 additions & 0 deletions
9
core/src/test/resources/dev/morphia/test/aggregation/stages/unionWith/example4/data1.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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ store: "General Store", item: "Cheese", quantity: 30 }, | ||
{ store: "ShopMart", item: "Cheese", quantity: 50 }, | ||
{ store: "General Store", item: "Chocolates", quantity: 125 }, | ||
{ store: "ShopMart", item: "Chocolates", quantity: 150 }, | ||
{ store: "General Store", item: "Cookies", quantity: 200 }, | ||
{ store: "ShopMart", item: "Cookies", quantity: 100 }, | ||
{ store: "ShopMart", item: "Nuts", quantity: 100 }, | ||
{ store: "General Store", item: "Pie", quantity: 30 }, | ||
{ store: "ShopMart", item: "Pie", quantity: 25 } |
10 changes: 10 additions & 0 deletions
10
core/src/test/resources/dev/morphia/test/aggregation/stages/unionWith/example4/data2.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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ store: "General Store", item: "Cheese", quantity: 50 }, | ||
{ store: "ShopMart", item: "Cheese", quantity: 20 }, | ||
{ store: "General Store", item: "Chocolates", quantity: 125 }, | ||
{ store: "ShopMart", item: "Chocolates", quantity: 150 }, | ||
{ store: "General Store", item: "Cookies", quantity: 200 }, | ||
{ store: "ShopMart", item: "Cookies", quantity: 100 }, | ||
{ store: "General Store", item: "Nuts", quantity: 80 }, | ||
{ store: "ShopMart", item: "Nuts", quantity: 30 }, | ||
{ store: "General Store", item: "Pie", quantity: 50 }, | ||
{ store: "ShopMart", item: "Pie", quantity: 75 } |
10 changes: 10 additions & 0 deletions
10
core/src/test/resources/dev/morphia/test/aggregation/stages/unionWith/example4/data3.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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ store: "General Store", item: "Cheese", quantity: 100, }, | ||
{ store: "ShopMart", item: "Cheese", quantity: 100}, | ||
{ store: "General Store", item: "Chocolates", quantity: 200 }, | ||
{ store: "ShopMart", item: "Chocolates", quantity: 300 }, | ||
{ store: "General Store", item: "Cookies", quantity: 500 }, | ||
{ store: "ShopMart", item: "Cookies", quantity: 400 }, | ||
{ store: "General Store", item: "Nuts", quantity: 100 }, | ||
{ store: "ShopMart", item: "Nuts", quantity: 200 }, | ||
{ store: "General Store", item: "Pie", quantity: 100 }, | ||
{ store: "ShopMart", item: "Pie", quantity: 100 } |
1 change: 1 addition & 0 deletions
1
core/src/test/resources/dev/morphia/test/aggregation/stages/unionWith/example4/name
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 @@ | ||
Namespaces in Subpipelines |