Thursday, 2 April 2020

Write the contents of the whole mongo database (contents of every collection) into JSON file using node?

As above, trying to get a simple backup functionality to my node app and I want to find a way to write contents of every single collection in my database to one big JSON file and store it serverside. Possible?I'm using mongoose with node and express.

Submitted April 02, 2020 at 11:54AM by Fizaraz

No comments:

Post a Comment