Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-2663

addFields command doesn't work when using it in the changeStream pipline

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.5.6, 3.5.7, 3.5.8, 3.5.9
    • Component/s: None
    • Labels:

      The code below has no effect on data that is sent through the change stream

       
      const pipeline = [
              // { $match: 

      { 'fullDocument.hashId': req.hashId }

       },
              { $addFields: 

      { newField: 'this is an added field!' }

       }
          ];

            Assignee:
            thomas.reggi@mongodb.com Thomas Reggi (Inactive)
            Reporter:
            xtianus@live.com Christian Holes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: