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
Install 5.6.0, pass an array of ObjectId's in a query such as:
app.models.catalog.find({}, function(err,catalogs) {
let catalogIds=[];
for(let i=catalogs.length; i>0; i--) catalogIds.push(catalogs[i-1].id);
app.models.registry.find({where:{ catalogId: { in: catalogIds}}}, function()...
Current Behavior
typeError: v.match does not exist
Expected Behavior
successful query lookup
Link to reproduction sandbox
Additional information
@@ -2167,7 +2169,7 @@
if (!propDef) return false;
if ((typeof value === 'string' && value.match(ObjectIdValueRegex)) ||
Steps to reproduce
Install 5.6.0, pass an array of ObjectId's in a query such as:
app.models.catalog.find({}, function(err,catalogs) {
let catalogIds=[];
for(let i=catalogs.length; i>0; i--) catalogIds.push(catalogs[i-1].id);
app.models.registry.find({where:{ catalogId: { in: catalogIds}}}, function()...
Current Behavior
typeError: v.match does not exist
Expected Behavior
successful query lookup
Link to reproduction sandbox
Additional information
@@ -2167,7 +2169,7 @@
if (!propDef) return false;
if ((typeof value === 'string' && value.match(ObjectIdValueRegex)) ||
if (isStoredAsObjectID(propDef)) return true;
else return !isStrictObjectIDCoercionEnabled(modelCtor, options);
} else if (value instanceof mongodb.ObjectID) {
Related Issues
See Reporting Issues for more tips on writing good issues
The text was updated successfully, but these errors were encountered: