Could not run on Typescript project. Does not create history object when i create new object, and when i tried to update old document it got stuck. #68
have tried both ways :-
// import * as diffHistory from "mongoose-diff-history/diffHistory"
// var diffHistory = require('mongoose-diff-history/diffHistory')
tried to declare in typing.d.ts also.
issue remain the same.
it always got stuck at this :-
Mongoose: user.findOne({ _bsontype: 'ObjectID', id: <Buffer 5f c8 e8 1d 50 b7 91 51 ea 39 8c b8>}, { projection: {} })
Mongoose: user.find({ _id: ObjectId("5fdb10f4bf8780f7ee0a7799") }, { projection: {} })
Note:- I am trying to setup it in my existing project and trying to update my old documents
have tried both ways :- // import * as diffHistory from "mongoose-diff-history/diffHistory" // var diffHistory = require('mongoose-diff-history/diffHistory')
tried to declare in typing.d.ts also.
issue remain the same.
it always got stuck at this :- Mongoose: user.findOne({ _bsontype: 'ObjectID', id: <Buffer 5f c8 e8 1d 50 b7 91 51 ea 39 8c b8>}, { projection: {} }) Mongoose: user.find({ _id: ObjectId("5fdb10f4bf8780f7ee0a7799") }, { projection: {} })
Note:- I am trying to setup it in my existing project and trying to update my old documents