闭关修行中......
Are you asking questions without giving details and letting others guess blindly?
The question is, how many people are free?
Have you imported it since you used ObjectId? Update operation reports an error, first check if there is any result in find?
This kind of question is not very different from "I wrote a piece of code and an error occurred, what is the reason?".
In addition, copy your code completely There is no problem in inserting only one piece of data and then performing the update operation.
Are you asking questions without giving details and letting others guess blindly?
The question is, how many people are free?
Have you imported it since you used ObjectId?
Update operation reports an error, first check if there is any result in find?
This kind of question is not very different from
"I wrote a piece of code and an error occurred, what is the reason?"
.
In addition, copy your code completely
There is no problem in inserting only one piece of data and then performing the update operation.