These are chat archives for Automattic/mongoose

28th
Mar 2019
matamune94
@matamune94
Mar 28 11:33
hi guy , im new mongo , how i can delete doc with id ?
Mariano Zunino
@forbi
Mar 28 12:52
@LouBerry You should use a Promise.all(ops), so you can wait for all of your Ops to finish. Once that it's done, you can destroy the connection, or kill the app process.exit(0) (it will close the connection too)