Document Save function with subdocuments modifications not working

XMLWordPrintableJSON

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

      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
            Reporter:
            Santiago Cruz
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: