[SERVER-9840] Add variables, $$ROOT and $$CURRENT to aggregation and make $let to set them Created: 31/May/13  Updated: 02/Aug/18  Resolved: 27/Jun/13

Status: Closed
Project: Core Server
Component/s: Aggregation Framework
Affects Version/s: None
Fix Version/s: 2.5.1

Type: Task Priority: Major - P3
Reporter: Mathias Stearn Assignee: Mathias Stearn
Resolution: Done Votes: 1
Labels: pull-request
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on DOCS-2719 Add $$ROOT and $$GROUP Aggregation Ex... Closed
is depended on by CSHARP-792 support new aggregation pipeline oper... Closed
Related
is related to SERVER-5916 In $group allow "$$ROOT" to expand to... Closed
Backwards Compatibility: Fully Compatible
Participants:

 Comments   
Comment by Benety Goh [ 23/Oct/14 ]

Error message fixed by jesse:

https://github.com/mongodb/mongo/commit/c76d80bce0212fe9770ddb6876878eb16014769b

Comment by Mathias Stearn [ 27/Jun/13 ]

driver changes only needed to add features to new high-level agg builder api

Comment by auto [ 18/Jun/13 ]

Author:

{u'username': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: SERVER-9840 Introduce the concept of Variables into aggregation and add $let to set them

As fallout from the main change, ExpressionObjects now need to be told
at construction time when they should use the semantics of a root object
in a $project (special handling of _id).
Branch: master
https://github.com/mongodb/mongo/commit/063e03c4e8055fd5e22251250715d34342cf88be

Generated at Thu Feb 08 03:21:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.