[SERVER-22236] 3.2 mongo shell _addSpecial( "$orderby", { qty: -1 } ) does not work Created: 20/Jan/16  Updated: 06/Dec/22  Resolved: 26/Jul/19

Status: Closed
Project: Core Server
Component/s: Querying, Shell
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Trivial - P5
Reporter: Kay Kim (Inactive) Assignee: Backlog - Query Team (Inactive)
Resolution: Won't Fix Votes: 0
Labels: query-44-grooming
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Query
Operating System: ALL
Participants:

 Description   

Since db.collection.find().addSpecial() is deprecated in 3.2, I don't know if this should be fixed or just noted in the 3.2 incompatibility page, but
the following doesn't work

db.products.find( { }, { item: 1, qty: 1, _id: 0 } )._addSpecial( "$orderby", { qty: -1 } )

whereas without the $ prefix in the $orderby works

db.products.find( { }, { item: 1, qty: 1, _id: 0 } )._addSpecial( "orderby", { qty: -1 } )



 Comments   
Comment by David Storch [ 26/Jul/19 ]

Since _addSpecial() has been a deprecated shell API since version 3.2, the query team has no plans to pursue this. Closing as "Won't Fix".

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