Move field deletion logic into mongo adapter (#1471)

This commit is contained in:
Drew
2016-04-12 19:06:58 -07:00
committed by Florent Vilmart
parent f312f81cbd
commit 512251eb58
4 changed files with 84 additions and 38 deletions

View File

@@ -28,7 +28,6 @@ export default class MongoCollection {
var index = {};
index[key] = '2d';
//TODO: condiser moving index creation logic into Schema.js
return this._mongoCollection.createIndex(index)
// Retry, but just once.
.then(() => this._rawFind(query, { skip, limit, sort }));