[SERVER-17171] the query for collection with "query" field didn't work as expected Created: 04/Feb/15  Updated: 04/Feb/15  Resolved: 04/Feb/15

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

Type: New Feature Priority: Major - P3
Reporter: Alex Vedmedenko Assignee: David Storch
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-9812 User query is interpreted incorrectly... Closed
Related
is related to SERVER-6767 Interpret $query as special so you ca... Closed
Participants:

 Description   

we have query
db.meta.things.find({query:"1"})
we have a data
when we run

db.meta.things.find({query:{$in:[1,2]}})

error: {
	"$err" : "Can't canonicalize query: BadValue unknown top level operator: $in",
	"code" : 17287
}

so it is the same as if i run
db.meta.things.find({$query:{$in:[1,2]}})



 Comments   
Comment by David Storch [ 04/Feb/15 ]

Hi vedmalex,

Thanks for reporting. We have identified this to be a duplicate of SERVER-9812. Please watch this ticket for updates.

Best,
Dave

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