[DOCS-7560] Comment on: "primer/genindex.txt" Created: 01/Apr/16  Updated: 03/Nov/17  Resolved: 01/Apr/16

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

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

cloud9 nodejs

Location: https://docs.mongodb.org/getting-started/node/genindex/
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36
Referrer: https://docs.mongodb.org/getting-started/node/indexes/
Screen Resolution: 1280 x 720
repo: docs-primer
source: genindex


Participants:
Days since reply: 7 years, 45 weeks, 5 days ago

 Description   

Methods specified in this docs of mongod node edition are throwing errors saying this is not a function
i.e: if Category is my schema which is already created and updated with some test values it says
"Category.updateOne is not a function"
If i try using updateOne method



 Comments   
Comment by Allison Reinheimer Moore [ 01/Apr/16 ]

The Node edition of these docs use the 2.x Node.js mongodb driver series, which added the updateOne method (among others). If you're using an earlier version of the Node.js driver, you will not be able to run the examples as provided.

If you'd like to upgrade, the Node.js driver docs include an upgrade guide.

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