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

Document Save function with subdocuments modifications not working

    • Type: Icon: Task Task
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.5.1
    • Component/s: MongoDB 3.4
    • Environment:
      Node express

      After a document found, i made some changes at subdocuments of subdocuments, node controller. At the end, i execute a document.Save(), and its not applying any update.

       

      At Node Console, I can see the following log:

       

      workoders.updateOne({ _id: ObjectId("5eb2cb637563340fcce6e91d"), __v: 2 },

      { '$set': \{ 'module.services.0.providers.0.activities.1.status': 'CANCELED' }

      } );

       

      I can predict that the issue is at the index subdocuments (they are ok) at the update statement, but not know what to change in order to solve this problem.

       

      Regards

            Assignee:
            Unassigned Unassigned
            Reporter:
            santiago@somosarado.com.ar Santiago Cruz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: