[DOCS-5491] getlasterror.n documentation is misleading Created: 22/May/15 Updated: 02/Nov/16 Resolved: 26/May/15 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | Server |
| Affects Version/s: | None |
| Fix Version/s: | mongodb-2.6, mongodb-3.0 |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Jeffrey Yemin | Assignee: | Kay Kim (Inactive) |
| Resolution: | Done | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Participants: | |||||||||||||||||
| Days since reply: | 8 years, 38 weeks, 1 day ago | ||||||||||||||||
| Description |
|
The documentation for getlasterror.n is not entirely accurate. It states:
It should say something like:
For example:
and for an upsert:
|
| Comments |
| Comment by Githook User [ 26/May/15 ] |
|
Author: {u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}Message: |
| Comment by Githook User [ 26/May/15 ] |
|
Author: {u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}Message: |
| Comment by Ramon Fernandez Marina [ 23/May/15 ] |
|
mitar, I've opened |
| Comment by NOVALUE Mitar [ 22/May/15 ] |
|
But could `getlasterror` also return the number of really updated documents? That number is available, why it would not be available in the `getlasterror`? |
| Comment by Jeffrey Yemin [ 22/May/15 ] |
|
Note that "n" also applies to findandmodify. |