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
ObjectId.fromDate is a method that existed in the legacy mongodb shell, but is not something that was ever part of the driver, which is what the vscode extension uses under the hood. It does support createFromTime though, so you'd need to modify your code like:
I can use such query command in
NoSQL booster for MongoDB
:However, in mongodb-js, the same command can't be run. It remind me that
ObjectId.fromDate is not a function
I am using latest mongodb-js.
Thank you for your help.
The text was updated successfully, but these errors were encountered: