Tuesday 19 March 2019

Run-rs mongoose

I’ve posted on here about transactions, and thanks to some people, I was able to work with mongoose transactions. However, it uses something called run-rs for a replica and I’m COMPLETELY new to the term and everything behind the scenes of it. Anyways, I find that when I restart the dB using “run-rn —mongod” everything is gone. No collection, no data, no nothing. I’ve looked online but found nothing and I’ve been at this for at least 5 days now. Is there a way I can use the run-rs module and not lose my data just because of a restart of some sort?

Submitted March 19, 2019 at 09:22PM by r_gui

No comments:

Post a Comment