-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle empty object case for Mongo update (#179)
* Handle empty object case for Mongo update
- Loading branch information
1 parent
5e587b2
commit 85aa1ea
Showing
4 changed files
with
313 additions
and
2 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
273 changes: 273 additions & 0 deletions
273
document-store/src/integrationTest/resources/query/update_operator/updated3.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,273 @@ | ||
[ | ||
{ | ||
"item": "Soap", | ||
"price": 10, | ||
"quantity": 2, | ||
"date": "2014-03-01T08:00:00Z", | ||
"props": { | ||
"new_property": { | ||
"with": { | ||
"empty": { | ||
"object": { | ||
"hello": "world", | ||
"emptyObject": {} | ||
} | ||
} | ||
} | ||
}, | ||
"brand": "Dettol", | ||
"size": "M", | ||
"seller": { | ||
"name": "Metro Chemicals Pvt. Ltd.", | ||
"address": { | ||
"city": "Mumbai", | ||
"pincode": 400004 | ||
} | ||
} | ||
}, | ||
"sales": [ | ||
{ | ||
"city": "delhi", | ||
"medium": [ | ||
{ | ||
"type": "distributionChannel", | ||
"volume": 1000 | ||
}, | ||
{ | ||
"type": "retail", | ||
"volume": 500 | ||
}, | ||
{ | ||
"type": "online", | ||
"volume": 1000 | ||
} | ||
] | ||
}, | ||
{ | ||
"city": "pune", | ||
"medium": [ | ||
{ | ||
"type": "distributionChannel", | ||
"volume": 300 | ||
}, | ||
{ | ||
"type": "online", | ||
"volume": 2000 | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"item": "Mirror", | ||
"price": 20, | ||
"quantity": 1, | ||
"date": "2014-03-01T09:00:00Z", | ||
"sales": [ | ||
{ | ||
"city": "delhi", | ||
"medium": [] | ||
} | ||
], | ||
"props": { | ||
"new_property": { | ||
"with": { | ||
"empty": { | ||
"object": { | ||
"hello": "world", | ||
"emptyObject": {} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"item": "Shampoo", | ||
"price": 5, | ||
"quantity": 10, | ||
"date": "2014-03-15T09:00:00Z", | ||
"props": { | ||
"new_property": { | ||
"with": { | ||
"empty": { | ||
"object": { | ||
"hello": "world", | ||
"emptyObject": {} | ||
} | ||
} | ||
} | ||
}, | ||
"brand": "Sunsilk", | ||
"size": "L", | ||
"seller": { | ||
"name": "Metro Chemicals Pvt. Ltd.", | ||
"address": { | ||
"city": "Mumbai", | ||
"pincode": 400004 | ||
} | ||
} | ||
}, | ||
"sales": [ | ||
{ | ||
"city": "delhi", | ||
"medium": [ | ||
{ | ||
"type": "distributionChannel", | ||
"volume": 3000 | ||
}, | ||
{ | ||
"type": "retail", | ||
"volume": 500 | ||
}, | ||
{ | ||
"type": "online", | ||
"volume": 1000 | ||
} | ||
] | ||
}, | ||
{ | ||
"city": "mumbai", | ||
"medium": [ | ||
{ | ||
"type": "distributionChannel", | ||
"volume": 700 | ||
}, | ||
{ | ||
"type": "retail", | ||
"volume": 500 | ||
}, | ||
{ | ||
"type": "online", | ||
"volume": 5000 | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"item": "Shampoo", | ||
"price": 5, | ||
"quantity": 20, | ||
"date": "2014-04-04T11:21:39.736Z", | ||
"sales": [], | ||
"props": { | ||
"new_property": { | ||
"with": { | ||
"empty": { | ||
"object": { | ||
"hello": "world", | ||
"emptyObject": {} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"item": "Soap", | ||
"price": 20, | ||
"quantity": 5, | ||
"date": "2014-04-04T21:23:13.331Z", | ||
"props": { | ||
"new_property": { | ||
"with": { | ||
"empty": { | ||
"object": { | ||
"hello": "world", | ||
"emptyObject": {} | ||
} | ||
} | ||
} | ||
}, | ||
"brand": "Lifebuoy", | ||
"size": "S", | ||
"seller": { | ||
"name": "Hans and Co.", | ||
"address": { | ||
"city": "Kolkata", | ||
"pincode": 700007 | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"item": "Comb", | ||
"price": 7.5, | ||
"quantity": 5, | ||
"date": "2015-06-04T05:08:13Z", | ||
"props": { | ||
"new_property": { | ||
"with": { | ||
"empty": { | ||
"object": { | ||
"hello": "world", | ||
"emptyObject": {} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"item": "Comb", | ||
"price": 7.5, | ||
"quantity": 10, | ||
"date": "2015-09-10T08:43:00Z", | ||
"props": { | ||
"new_property": { | ||
"with": { | ||
"empty": { | ||
"object": { | ||
"hello": "world", | ||
"emptyObject": {} | ||
} | ||
} | ||
} | ||
}, | ||
"seller": { | ||
"name": "Go Go Plastics", | ||
"address": { | ||
"city": "Kolkata", | ||
"pincode": 700007 | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"item": "Soap", | ||
"price": 10, | ||
"quantity": 5, | ||
"date": "2016-02-06T20:20:13Z", | ||
"props": { | ||
"new_property": { | ||
"with": { | ||
"empty": { | ||
"object": { | ||
"hello": "world", | ||
"emptyObject": {} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"item": "Soap", | ||
"price": 88, | ||
"quantity": 50, | ||
"date": "2023-08-09T18:53:17Z", | ||
"props": { | ||
"new_property": { | ||
"with": { | ||
"empty": { | ||
"object": { | ||
"hello": "world", | ||
"emptyObject": {} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
] |
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