[DOCS-9777] Comment on: "manual/reference/method/db.dropDatabase.txt" Created: 16/Jan/17  Updated: 30/Oct/23  Resolved: 22/May/19

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

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

Location: https://docs.mongodb.com/v3.2/reference/method/db.dropDatabase/
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36
Referrer: https://www.google.ru/
Screen Resolution: 1600 x 900


Participants:
Days since reply: 4 years, 38 weeks ago
Epic Link: DOCSP-1769

 Description   

there is a mistake when calling this function:
if(self.s.topology.capabilities().commandsTakeWriteConcern) {
^

TypeError: Cannot read property 'commandsTakeWriteConcern' of null
at decorateWithWriteConcern (C:\projects\node\chat2\node_modules\mongoose\node_modules\mongodb\lib\db.js:485:36)
at Db.dropDatabase (C:\projects\node\chat2\node_modules\mongoose\node_modules\mongodb\lib\db.js:872:3)
at Object.<anonymous> (C:\projects\node\chat2\createDb.js:6:4)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:509:3
in version 4.6.0 and higher



 Comments   
Comment by Kay Kim (Inactive) [ 22/May/19 ]

The referenced page refers to the mongo shell method. Closing and reporter has been contacted.

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