Skip to content

change of value is NOT working #78

@mohanelankuppan

Description

@mohanelankuppan

change of value is NOT working

async function changeValueMongo (db, next) {
res = await db.collection('mongos').find({}).forEach(async function (mongo) {
if (mongo.plan.mongoOperation && mongo.plan.mongoOperation.trip) {
mongo.plan.mongoOperation.trip.forEach(function (mongoData) {
if (mongoData.mongoMethod === 'mongo') {
mongoData.mongoMethod = 'mongodb'
}
})
}
await db.collection('mongos').save(mongo)
});
}

During migrate the value is NOT changing in DB

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions