[SERVER-38526] I run updateMany() command through mongo shell but output will not showing once ru the updateMany command Created: 11/Dec/18  Updated: 12/Dec/18  Resolved: 11/Dec/18

Status: Closed
Project: Core Server
Component/s: Admin
Affects Version/s: 3.4.17
Fix Version/s: None

Type: Question Priority: Major - P3
Reporter: Tirupathi Assignee: Danny Hatcher (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File UpdateMany_output.PNG     Microsoft Word updateMany() command.docx    
Issue Links:
Duplicate
duplicates SERVER-38153 I run javascript through mongo shell ... Closed
Participants:

 Description   

HI Team,

 

I run updateMany() command through mongo shell but output will not showing.

 

Pleas check and let me know. How to fix this issue.

 

updateMany() command.docx

 



 Comments   
Comment by Danny Hatcher (Inactive) [ 12/Dec/18 ]

Hello Tirupathi,

You will not see any output if you use the load command. You may use the command manually in the shell or by invoking the script via the command line:

mongo /opt/app/mongo/dump/update.js

Please note that Stennie has provided a more complete answer on Stack Overflow.

This is not a bug in MongoDB. Please note that SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related support discussion please post on the mongodb-user group or Stack Overflow with the mongodb tag. A question like this involving more discussion would be best posted on the mongodb-user group.

Thank you,

Danny

Comment by Tirupathi [ 12/Dec/18 ]

Hi Daniel,

 

Please reopen the ticket and provide me the solution for updaMany() command output.

Comment by Tirupathi [ 12/Dec/18 ]

Please fix this issue ASAP.

Comment by Tirupathi [ 12/Dec/18 ]

Hi,

We are using 3.4,17 binaries and getting same issue while execute updateMany() command through mongo shell. Please reopen the Ticket and fix this issue.

 

And also please find the attached issue screen shot.updateMany() command.docx

Comment by Tirupathi [ 11/Dec/18 ]

Thanks for the update information.

Comment by Danny Hatcher (Inactive) [ 11/Dec/18 ]

Hello,

If you encounter issues with scripts, I recommend attempting the same commands directly via the shell interface. That will typically indicate the source of your issue. Additionally, please note that the shell version is 4.0.2 while the server version is 3.4.17. These should be compatible but if you are having issues you may wish to try using a 3.4.17 shell to see if the desired output occurs.

Please note that SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related support discussion please post on the mongodb-user group or Stack Overflow with the mongodb tag. A question like this involving more discussion would be best posted on the mongodb-user group.

Thank you very much,

Danny

Generated at Thu Feb 08 04:49:12 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.