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

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

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.3
    • Affects Version/s: None
    • Component/s: Querying
    • Minor Change
    • Query 2019-12-16

      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.

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

              Created:
              Updated:
              Resolved: