-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Open
Labels
good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Description
I'm submitting an ISSUE: please check one with "x"
- New question{'s}
- New assessment
- Missed questions/answers
- Request for new quiz/answers/...
- Documentation issue or request for ...
- ...
Wrong answer from what I can see?
Q97. Which command is used to create a new database in MongoDB?
createDatabase()
useDatabase()
db.createDatabase()
use
The marked "correct answer" is c. db.createDatabase(). That's wrong isn't it?
Presuming this is the full question, it seems implied to be within mongosh (Mongo Shell) like most questions, and that means "use" is correct answer, instead of c. db.createDatabase. Unless I am missing something? But since client.db("newDatabaseName") isn't an option I don't see a better answer than d. use.
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed