need to be sure that everything successes or nothing must be written.
I found .insertMany but with a single schema
How can I do this behavior (everything or nothing) with multiple schemas?
EDIT: problem solved below
https://mongoosejs.com/docs/transactions.html
Обсуждают сегодня