[COMPASS-5173] Add expression to get value by keyname from object Created: 23/Sep/21 Updated: 16/Nov/21 Resolved: 19/Oct/21 |
|
| Status: | Closed |
| Project: | Compass |
| Component/s: | Autocomplete |
| Affects Version/s: | None |
| Fix Version/s: | 1.29.4 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Jessica Sigafoos | Assignee: | Alena Khineika |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||
| Epic Link: | COMPASS-4949 | ||||||||||||||||||||||||||||
| Story Points: | 2 | ||||||||||||||||||||||||||||
| Documentation Changes: | Needed | ||||||||||||||||||||||||||||
| Sprint: | Iteration Novokuybyshevsk | ||||||||||||||||||||||||||||
| Description |
|
Downstream Change Summary Added a new aggregation expression, $getField: see the syntax document for more details: https://docs.google.com/document/d/1aXTM207O4b8Sj7C76f3A44dvCIXErgKB_u17XLnsxfk Note that this is feature-flag guarded by featureFlagDotsAndDollars, which is currently disabled. Description of Linked TicketWhile it's possible via combined use of $objectToArray and $filter with $map, it would be nice to have a simple expression to get value of particular field of an object:
This will allow easily plucking out a value when the field name is stored in another part of the same document, or when it has some funny character that precludes it being used as subfield name (like leading "$") as in SERVER-30365 and Second argument could be optional and default to "$$ROOT". |
| Comments |
| Comment by Githook User [ 26/Oct/21 ] |
|
Author: {'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}Message: feat: bump ace-autocompleter to 0.8.0
|
| Comment by Githook User [ 19/Oct/21 ] |
|
Author: {'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}Message: feat: bump ace-autocompleter to 0.8.0
|
| Comment by Githook User [ 19/Oct/21 ] |
|
Author: {'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}Message: feat: bump ace-autocompleter to 0.8.0
|
| Comment by Githook User [ 18/Oct/21 ] |
|
Author: {'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}Message: feat: bump ace-autocompleter to 0.8.0 to support tsSecond, tsIncrement, densify, getfield
|