Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-2857

positional operator ($) avaliable in field selection

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Querying
    • None

    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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: