How to remove a document inside an array in mongodb using $pull
问题 I have the following document structure { "_id" : ObjectId("5ffef283f1f06ff8524aa2c2"), "applicationName" : "TestApp", "pName" : "", "environments" : [], "stages" : [], "createdAt" : ISODate("2021-01-15T09:51:35.546Z"), "workflows" : [ [ { "pName" : "Test1", "wName" : "TestApp_Test1", "agent" : "" }, { "pName" : "Test2", "wName" : "TestApp_Test2", "agent" : "" } ], [ { "pName" : "Test1", "wName" : "TestApp_Test1", "agent" : "" } ] ], "updatedAt" : Date(-62135596800000) } I wish to remove the