From 0e7fde88d2bdd5b952f7f2a2255ae70c76ef2494 Mon Sep 17 00:00:00 2001 From: Louis Chatriot Date: Mon, 2 Sep 2013 09:47:20 +0200 Subject: [PATCH] Failing test case for indexes and array fields --- lib/datastore.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/datastore.js b/lib/datastore.js index 40ae874..ae568bf 100644 --- a/lib/datastore.js +++ b/lib/datastore.js @@ -480,6 +480,18 @@ Datastore.prototype.remove = function () { this.executor.push({ this: this, fn: this._remove, arguments: arguments }); }; +/* +var db = new Datastore({ inMemoryOnly: true }) + +//db.ensureIndex({ fieldName: 'tag' }); + +db.insert({ tag: ['a', 'b', 'c'] }, function () { + db.find({ tag: 'b' }, function (err, item) { + console.log(err); + console.log(item); + }); +}); +*/ module.exports = Datastore;