[SERVER-22283] Can't use $meta projection operator with field exclusions Created: 22/Jan/16  Updated: 06/Dec/22

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

Type: Improvement Priority: Minor - P4
Reporter: Billy Tetrud Assignee: Backlog - Query Optimization
Resolution: Unresolved Votes: 0
Labels: query-44-grooming
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Query Optimization
Participants:

 Description   

When doing something like:

db.Something.find({},{$meta:'textScore',title:0})

you get back the error "Can't canonicalize query: BadValue Projection cannot have a mix of inclusion and exclusion." You should be able to use exclusions with $meta just like you can with $elemMatch for example.


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