Pass the Parse Schema into untransform

This commit is contained in:
Drew Gross
2016-05-23 15:54:12 -07:00
parent fe8160449c
commit 474a893a22
3 changed files with 8 additions and 8 deletions

View File

@@ -199,10 +199,10 @@ export class MongoStorageAdapter {
// Executes a find. Accepts: className, query in Parse format, and { skip, limit, sort }.
// Accepts the schemaController for legacy reasons.
find(className, query, { skip, limit, sort }, schemaController) {
find(className, query, { skip, limit, sort }, schemaController, schema) {
return this.adaptiveCollection(className)
.then(collection => collection.find(query, { skip, limit, sort }))
.then(objects => objects.map(object => transform.mongoObjectToParseObject(schemaController, className, object)));
.then(objects => objects.map(object => transform.mongoObjectToParseObject(schemaController, className, object, schema)));
}
get transform() {