[SERVER-2857] positional operator ($) avaliable in field selection Created: 29/Mar/11  Updated: 29/Mar/11  Resolved: 29/Mar/11

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

Type: Improvement Priority: Major - P3
Reporter: Loïc Jeannin Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

document : {metas : [

{'name' : 'foo' , 'value' : 42}

,

{'name' : 'bar', 'value' : 55 }

]}

I'd like do be able to do .find(

{'metas.name' : 'foo' }

,

{'metas.$' : 1}

), so it only returns the matching sub-array in the field.



 Comments   
Comment by Eliot Horowitz (Inactive) [ 29/Mar/11 ]

SERVER-828

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