Details
-
Bug
-
Resolution: Duplicate
-
Major - P3
-
None
-
None
-
None
-
Query
-
ALL
Description
Take the following example document:
{
|
"_id": "abc123", |
"name": "Testitem", |
"item": { |
"color": "blue", |
"size": 4, |
"price": 10 |
}
|
}
|
If the document is updated using:
{
|
"$set": { |
"item.color": "red", |
"item.size": 5 |
}
|
}
|
Then a change stream listening to updates will receive a response like this:
{
|
"updateDescription": { |
"updatedFields": { |
"item.color": "red", |
"item.size": 5 |
}
|
}
|
}
|
Because the updated fields are written to updateDescription.updatedFields with a dot as a separator, it is impossible to query the updatedFields (see SERVER-30575) for example to only listen to updates if the "item.color" property changes.
Attachments
Issue Links
- duplicates
-
SERVER-21889 Oplog format for $set operations on subdocuments creates format that is not queryable
-
- Backlog
-