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

Type for ObjectID does not match mongodb ObjectId #52

Open
dcantatore opened this issue Sep 26, 2022 · 1 comment
Open

Type for ObjectID does not match mongodb ObjectId #52

dcantatore opened this issue Sep 26, 2022 · 1 comment

Comments

@dcantatore
Copy link

If you are using a typescript project and are trying to use the bson-objectid imported ObjectId it is missing 4 properties.

TS2739: Type 'ObjectID' is missing the following properties from type 'ObjectId': _bsontype, generationTime, toJSON,

Listed for convenience:

_bsontype
generationTime
toJSON
inspect
@dcantatore dcantatore changed the title Type for ObjectId does not match mongodbs Type for ObjectID does not match mongodb ObjectId Sep 26, 2022
@lattam
Copy link

lattam commented Jul 3, 2023

Any updates or workarounds for this issue?

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

2 participants