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

Disallow additional path components after the positional projection ("$") operator

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.3.3
    • Querying
    • Minor Change
    • Query 2019-12-16

    Description

      Positional projections

      a.b.$ 

      and 

      a.b.$.c 

       

      Are treated equivalently. By most, this is considered a bug (see SERVER-6866). We should consider breaking this behavior, and making any positional projection with fields after the '$' illegal.

      Attachments

        Issue Links

          Activity

            People

              ian.boros@mongodb.com Ian Boros
              ian.boros@mongodb.com Ian Boros
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: