ashadjawaid
2018-12-10 22:53:10 UTC
updateMany is not providing any output via load function However when
i execute exlicitly its fine.
Please suggest any environment setting. Also I need to echo the
load if possible
MongoDB Enterprise > setVerboseShell(true)
MongoDB Enterprise > load('/opt/app/mongo/test.js')
true
MongoDB Enterprise > db.organizations.updateMany({"_id" : {$in : [
"120300007","160800001","175100009","193000031","201700008","235500001","237600001","24600001","272500006","278200081"]}},{$unset
: {"asenodMigrationDetails.aseMigrationStatus" : ""}});
{ "acknowledged" : true, "matchedCount" : 3, "modifiedCount" : 0 }
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user+***@googlegroups.com.
To post to this group, send email to mongodb-***@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/54de4ca2-560f-4081-a256-3ca932a4337f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
i execute exlicitly its fine.
Please suggest any environment setting. Also I need to echo the
load if possible
MongoDB Enterprise > setVerboseShell(true)
MongoDB Enterprise > load('/opt/app/mongo/test.js')
true
MongoDB Enterprise > db.organizations.updateMany({"_id" : {$in : [
"120300007","160800001","175100009","193000031","201700008","235500001","237600001","24600001","272500006","278200081"]}},{$unset
: {"asenodMigrationDetails.aseMigrationStatus" : ""}});
{ "acknowledged" : true, "matchedCount" : 3, "modifiedCount" : 0 }
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user+***@googlegroups.com.
To post to this group, send email to mongodb-***@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/54de4ca2-560f-4081-a256-3ca932a4337f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.