[DOCS-4242] Error or unclarity in: "manual/tutorial/create-an-auto-incrementing-field.txt" Created: 27/Oct/14  Updated: 11/Jan/17  Resolved: 19/Nov/14

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: 01112017-cleanup

Type: Bug Priority: Minor - P4
Reporter: Docs Collector User (Inactive) Assignee: Kay Kim (Inactive)
Resolution: Done Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

mac osX, 10.7, firefox 32.03

Location: http://docs.mongodb.org/manual/tutorial/create-an-auto-incrementing-field/#auto-increment-counters-collection
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:32.0) Gecko/20100101 Firefox/32.0
Screen Resolution: 1440 x 900
repo: docs
source: tutorial/create-an-auto-incrementing-field


Participants:
Days since reply: 9 years, 13 weeks ago

 Description   

1. run tryit
2. copy / paste examples on page in sequence shown, e.g. 1,2,3., into tryit.
3. Section with this code:

db.users.insert(

{ _id: getNextSequence("userid"), name: "Sarah C." }

) ////....

will error with

ERROR: findAndModify is not implemented.
TypeError: invalid 'in' operand obj

If this is the expected result, page should explain why.



 Comments   
Comment by Kay Kim (Inactive) [ 19/Nov/14 ]

Closing docs ticket – but opening an internal ticket to add findAndModify to the try it out! shell

Generated at Thu Feb 08 07:47:31 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.