You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 15, 2023. It is now read-only.
I have the following query myModel.findOneAndUpdate({_id: ID},{$push: {myField: myData}},{$new: true})
But pre findOneAndUpdate not work and error occur in its integration with schema:
I have the following query
myModel.findOneAndUpdate({_id: ID},{$push: {myField: myData}},{$new: true})But
pre findOneAndUpdatenot work and error occur in its integration with schema:Error is in
d.createdBy, because if I consoled, it shows following data:{ updatedAt: 2019-01-30T08:52:43.770Z, __v: undefined }