Merge pull request #283 from theill/master

Implementing GET /config and POST /config support
This commit is contained in:
Drew
2016-02-10 18:34:44 -08:00
4 changed files with 134 additions and 0 deletions

View File

@@ -48,6 +48,10 @@ ExportAdapter.prototype.collection = function(className) {
throw new Parse.Error(Parse.Error.INVALID_CLASS_NAME,
'invalid className: ' + className);
}
return this.rawCollection(className);
};
ExportAdapter.prototype.rawCollection = function(className) {
return this.connect().then(() => {
return this.db.collection(this.collectionPrefix + className);
});