I try to find entries by indices:
var questions = db.addCollection('questions',{indices: ['key']});
questions.insert({
key: 1,
quest: 'any idea'
},
{
key: 2,
quest: 'no idea'
});
questions.find({'key':1});
but I get no result. Dumping the database shows the entries. Any idea ?