T
T
tikos2015-12-23 16:49:01
JavaScript
tikos, 2015-12-23 16:49:01

How to remove mongodb base via node.js?

You can easily write db.dropDatabase() through the mongo itself and the database is clean, but how to do the same in the node? which modules to connect to do this, I did not find anything in the mongoose documentation.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
timfcsm, 2015-12-23
@tikos

mongoose.connection.db.dropDatabase

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question