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
I have an application running, and I had some problems when I make a find in a string (even though it is an ObjectId), I already tried to convert the String to ObjectId with mongoose.Types.ObjectId(' 53cb6b9b4f4ddef1ad47f943 ') (example) and Even then I can not get the return and it returns me the following error:
Error: Argument passed in must be a single String of 12 bytes or a string of 24 hex characters
Also returns me:
this.id.charCodeAt is not a function
Has anyone had this problem yet?
The text was updated successfully, but these errors were encountered:
I have an application running, and I had some problems when I make a find in a string (even though it is an ObjectId), I already tried to convert the String to ObjectId with
mongoose.Types.ObjectId(' 53cb6b9b4f4ddef1ad47f943 ')
(example) and Even then I can not get the return and it returns me the following error:Error: Argument passed in must be a single String of 12 bytes or a string of 24 hex characters
Also returns me:
this.id.charCodeAt is not a function
Has anyone had this problem yet?
The text was updated successfully, but these errors were encountered: