[SERVER-4176] Add more intuitive object argument to shell's update method Created: 31/Oct/11  Updated: 11/Jul/16  Resolved: 31/Oct/11

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: None
Fix Version/s: 2.1.0

Type: Improvement Priority: Trivial - P5
Reporter: Brandon Diamond Assignee: Brandon Diamond
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

Currently, db.coll.update(...) utilizes two boolean values to represent upsert and multiupdate. It would be more intuitive and memorable (as well as backwards compatible) if one could pass an object mapping "multi" and "upsert", instead.



 Comments   
Comment by Brandon Diamond [ 14/Nov/11 ]

I've added the appropriate documentation to shell help

Comment by auto [ 14/Nov/11 ]

Author:

{u'login': u'', u'name': u'Brandon Diamond', u'email': u'brandon@10gen.com'}

Message: SERVER-4176: Added shell help for new behavior
Branch: master
https://github.com/mongodb/mongo/commit/e58ca1a7209aff955a5ef1b5c75f62e8a0e68151

Comment by Dwight Merriman [ 13/Nov/11 ]

please update the shell help to reflect

Comment by auto [ 01/Nov/11 ]

Author:

{u'login': u'', u'name': u'Brandon Diamond', u'email': u'brandon@10gen.com'}

Message: SERVER-4176: tests for update usability improvements
Branch: master
https://github.com/mongodb/mongo/commit/7c59742f5cc890be76d2c79b9cea50b1fe095dae

Comment by auto [ 31/Oct/11 ]

Author:

{u'login': u'', u'name': u'Brandon Diamond', u'email': u'brandon@10gen.com'}

Message: SERVER-4176: Usability improvement for update()
Branch: master
https://github.com/mongodb/mongo/commit/83e830d42aa900313901136c4704fe86dac6e8db

Generated at Thu Feb 08 03:05:11 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.