Skip to content

Instantly share code, notes, and snippets.

@brettkiefer
Created July 8, 2011 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brettkiefer/1071926 to your computer and use it in GitHub Desktop.
Save brettkiefer/1071926 to your computer and use it in GitHub Desktop.
Crashes MongoDB 1.8.1
var mongoose = require('mongoose');
var IndexedGuy = new mongoose.Schema({
name: { type: String, index: true }
});
mongoose.model('IndexedGuy', IndexedGuy);
mongoose.connect("mongodb://localhost/test-crash");
mongoose.model('IndexedGuy').find({
_id: {
$in: [
'4e0de2a6ee47bff98000e145',
'4e137bd81a6a8e00000007ac',
'',
'4e0e2ca0795666368603d974']
}
}, function(err, results) {
console.log(err);
return console.log(results);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment