Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
abhinavagarwal8 opened this issue May 27, 2021 · 0 comments

Comments

@abhinavagarwal8
Copy link

abhinavagarwal8 commented May 27, 2021

Screenshot 2021-05-27 at 8 38 47 PM

Screenshot 2021-05-27 at 8 39 10 PM

Screenshot 2021-05-27 at 8 33 55 PM

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

@abhinavagarwal8 abhinavagarwal8 changed the title COuld not run on Typescript project. 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. May 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant