Y
Y
yvetrov2019-07-12 18:53:01
MongoDB
yvetrov, 2019-07-12 18:53:01

Registration data is overwritten by mongoose. What to do?

Maybe someone knows. The problem appeared: there is a registration, after submitting the form to the database - it is created, but when the second person registers, the previous data (data of the first person) is simply overwritten with new ones. In fact, no new documents are created. What to do? Submitting with user.save()

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question