-
-
Couldn't load subscription status.
- Fork 3.9k
Closed
Labels
enhancementThis issue is a user-facing general improvement that doesn't fix a bug or add a new featureThis issue is a user-facing general improvement that doesn't fix a bug or add a new feature
Milestone
Description
I am having a helluva a time trying to determining if a value is a valid ObjectId, there seems to be a big problem with this -
I tried
var ObjectId = mongoose.Types.ObjectId;
var ObjectId = mongoose.Schema.Types.ObjectId;
using ObjectId.isValid() and new ObjectId(val);take a look here:
you can see that the value "95" or 95 slips through:
what the heck is going on?
please help, thanks!
Metadata
Metadata
Assignees
Labels
enhancementThis issue is a user-facing general improvement that doesn't fix a bug or add a new featureThis issue is a user-facing general improvement that doesn't fix a bug or add a new feature

