E
E
Elena2020-08-29 11:21:51
Mongoose
Elena, 2020-08-29 11:21:51

Why doesn't the orFail() method work?

Hi everybody! Why does the orFail() method work with the deleteOne() method, but not with the findByIdAndRemove() method?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dimamurugov, 2020-10-15
@dimamurugov

Actually, this is a known bug in mobgoose: https://github.com/Automattic/mongoose/issues/9381

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question