[DOCS-8915] Make "as" option of $filter and $map default to "this" Created: 28/Sep/16  Updated: 14/Jul/17  Resolved: 05/Jun/17

Status: Closed
Project: Documentation
Component/s: Server
Affects Version/s: None
Fix Version/s: 3.4.0

Type: Task Priority: Major - P3
Reporter: Emily Hall Assignee: Nicholas Larew
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-24302 Make "as" option of $filter and $map ... Closed
Participants:
Days since reply: 6 years, 30 weeks, 6 days ago

 Description   

Since we added $reduce to have variable names "this" and "value" during SERVER-17258, we should update $map and $filter to default their "as" option to "this".



 Comments   
Comment by Githook User [ 14/Jul/17 ]

Author:

{u'username': u'nlarew', u'name': u'Nick Larew', u'email': u'nick.larew@10gen.com'}

Message: DOCS-8915: 'as' in $map and $filter defaults to ('$$this' -> 'this')

Signed-off-by: kay <kay.kim@10gen.com>
Branch: wip-3.6
https://github.com/mongodb/docs/commit/b8c11a66ea5d7249326f67a1fa459b44bd7d58be

Comment by Githook User [ 14/Jul/17 ]

Author:

{u'username': u'nlarew', u'name': u'Nick Larew', u'email': u'nick.larew@10gen.com'}

Message: DOCS-8915: 'as' option of $filter and $map defaults to 'this'

Signed-off-by: kay <kay.kim@10gen.com>
Branch: wip-3.6
https://github.com/mongodb/docs/commit/68a109373c48ce3e7359643f61c2e2b57fe0c4e1

Comment by Githook User [ 11/Jul/17 ]

Author:

{u'username': u'nlarew', u'name': u'Nick Larew', u'email': u'nick.larew@10gen.com'}

Message: DOCS-8915: 'as' in $map and $filter defaults to ('$$this' -> 'this')

Signed-off-by: kay <kay.kim@10gen.com>
Branch: v3.2
https://github.com/mongodb/docs/commit/355a6a844ba5e48bcb1753fd4095373211cb066f

Comment by Githook User [ 11/Jul/17 ]

Author:

{u'username': u'nlarew', u'name': u'Nick Larew', u'email': u'nick.larew@10gen.com'}

Message: DOCS-8915: 'as' option of $filter and $map defaults to 'this'

Signed-off-by: kay <kay.kim@10gen.com>
Branch: v3.2
https://github.com/mongodb/docs/commit/a1331ae0f60e4d08091996f39e7f057d1375c255

Comment by Githook User [ 11/Jul/17 ]

Author:

{u'username': u'nlarew', u'name': u'Nick Larew', u'email': u'nick.larew@10gen.com'}

Message: DOCS-8915: 'as' in $map and $filter defaults to ('$$this' -> 'this')

Signed-off-by: kay <kay.kim@10gen.com>
Branch: master
https://github.com/mongodb/docs/commit/2ed19d24231b1296581b784b8ea5a2a6133553d9

Comment by Githook User [ 11/Jul/17 ]

Author:

{u'username': u'nlarew', u'name': u'Nick Larew', u'email': u'nick.larew@10gen.com'}

Message: DOCS-8915: 'as' option of $filter and $map defaults to 'this'

Signed-off-by: kay <kay.kim@10gen.com>
Branch: master
https://github.com/mongodb/docs/commit/6646049b90e9d08584b61ce87145529a4d871971

Generated at Thu Feb 08 07:57:13 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.