support Relation object saving (#3074)
* support Parse.Relation object save * prevent Relation object from being saved in storage
This commit is contained in:
committed by
Florent Vilmart
parent
e9e6a4764e
commit
4ea455b20a
@@ -895,6 +895,13 @@ function getObjectType(obj) {
|
||||
targetClass: obj.className
|
||||
}
|
||||
}
|
||||
case 'Relation' :
|
||||
if(obj.className) {
|
||||
return {
|
||||
type: 'Relation',
|
||||
targetClass: obj.className
|
||||
}
|
||||
}
|
||||
case 'File' :
|
||||
if(obj.name) {
|
||||
return 'File';
|
||||
|
||||
Reference in New Issue
Block a user