-
Type: Task
-
Resolution: Won't Fix
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query 2019-03-25
At a first guess, there are three main pieces to this work:
- Adding logic to the FieldPath class to notice and accept something like "$[0]".
- Adding logic to the Document and Value classes to interpret this correctly in methods like 'getDottedPath'
- Adding logic to the $project and $addFields stages to support something like {$addFields: {"a.$[0]": 1}} - $project might be slightly weirder with its semantics of how anything not referenced is not included.