[SERVER-40557] Enable querying of dotted updatedFields in Change Stream pipeline Created: 10/Apr/19 Updated: 25/Apr/19 Resolved: 22/Apr/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Aggregation Framework, Querying |
| Affects Version/s: | 4.0.8 |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Simon Yarde | Assignee: | Eric Sedor |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Participants: | |||||||||
| Description |
|
In a Change Stream pipeline, we would like to refer to updated fields in But field path expressions cannot refer to such fields because they contain A workaround for some scenarios is to use the full-document option to have MongoDB
|
| Comments |
| Comment by Simon Yarde [ 25/Apr/19 ] | ||
|
Thanks Eric and Asya! I didn't find that ticket when searching and the workarounds are very helpful. | ||
| Comment by Eric Sedor [ 22/Apr/19 ] | ||
|
simony we are going to close this ticket as a duplicate of SERVER-21889. Please watch that ticket for updates. | ||
| Comment by Asya Kamsky [ 22/Apr/19 ] | ||
|
I think this is another request that's duplicate of SERVER-21889 same as | ||
| Comment by Eric Sedor [ 15/Apr/19 ] | ||
|
simony, I am passing this to an appropriate team to consider this request against our planned work. Another workaround that may help is to use $objectToArray. While $unwind is not permitted in changeStream pipelines, the following at least allows you to match on events that update specific dotted fields:
Note that any information you can provide about your use-case and underlying motivations for this request will help us reason about it. | ||
| Comment by Eric Sedor [ 11/Apr/19 ] | ||
|
Thanks for your report! We are taking a look. |