Schema.js database agnostic (#1468)

* Schema.js database agnostic

* nits
This commit is contained in:
Florent Vilmart
2016-04-12 17:39:27 -04:00
parent c419106a38
commit c050a65d49
7 changed files with 177 additions and 163 deletions

View File

@@ -8,11 +8,11 @@ var dummySchema = {
data: {},
getExpectedType: function(className, key) {
if (key == 'userPointer') {
return '*_User';
return { type: 'Pointer', targetClass: '_User' };
} else if (key == 'picture') {
return 'file';
return { type: 'File' };
} else if (key == 'location') {
return 'geopoint';
return { type: 'GeoPoint' };
}
return;
},