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

pass view object to mongot

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Integration
    • Fully Compatible

      the view object will contain the view's name and the view's pipeline.

      {
          view: {
              name: <name of view>,
              effectivePipeline: <pipeline>
      }
      

      The effective pipeline being the current view's pipeline + any ancestor view pipelines. 

       

      So if view A is 

      {$addFields : {a: <...>}}

      and view B is created on top of A and its pipeline is

      {$addFields: {b: ...}}

      , then the effective pipeline for createSearchIndex on B would be 

      [{$addFields: {a: <...>}}, {$addFields: {b: <...>}}]

       

      The effective pipeline is only required for the createSearchIndex command. But the nesting the view's name as 

      {view: {name: <...>}}

       is required for all search index commands

            Assignee:
            josh.siegel@mongodb.com Josh Siegel
            Reporter:
            maddie.zechar@mongodb.com Maddie Zechar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: