positional operator ($) avaliable in field selection

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Unassigned
            Reporter:
            Loïc Jeannin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: