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
The findByIdDeleted method isn't working as described in the docs.
In the docs it says that findByIdDeleted takes a callback that returns a document
Sample.findByIdDeleted(sampleId,function(err,doc){//doc.deletedAt will be current timestamp//doc.deleted will be true})
But instead findByIdDeleted isn't doing anything with the callback.
constresult=UserModel.findByIdDeleted('60b6dbd320329b2952db39e8',function(err,doc){console.log(err||doc);// code never gets here});result//> returns a query
Also the function returns a model.Query, not a mongoose document:
The
findByIdDeleted
method isn't working as described in the docs.In the docs it says that
findByIdDeleted
takes a callback that returns a documentBut instead
findByIdDeleted
isn't doing anything with the callback.Also the function returns a
model.Query
, not a mongoose document:The text was updated successfully, but these errors were encountered: