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

view definitions should *not* allow $out as a stage

    • Minor Change
    • ALL
    • v4.0
    • Query 2018-06-18

      We seem to allow $out stage as part of view definition.

      This is problematic for several reasons. One is that trying to append any stages (i.e. doing anything other than a simple find() on this view) will fail. The other is that running find on this view will blow away whatever is in the collection named in "$out" which is not an obvious outcome and unlikely to have a valid use case for it.

            Assignee:
            samuel.mercier@mongodb.com Sam Mercier
            Reporter:
            asya.kamsky@mongodb.com Asya Kamsky
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: