feat(postgres): Add Bytes to Support (#3894)
* Add bytes to schema * postgres support * test cases * bytes work parse object
This commit is contained in:
committed by
Florent Vilmart
parent
e8be98ded2
commit
4b16a72992
@@ -216,6 +216,7 @@ const validNonRelationOrPointerTypes = [
|
||||
'Array',
|
||||
'GeoPoint',
|
||||
'File',
|
||||
'Bytes'
|
||||
];
|
||||
// Returns an error suitable for throwing if the type is invalid
|
||||
const fieldTypeIsInvalid = ({ type, targetClass }) => {
|
||||
@@ -966,7 +967,7 @@ function getObjectType(obj) {
|
||||
break;
|
||||
case 'Bytes' :
|
||||
if(obj.base64) {
|
||||
return;
|
||||
return 'Bytes';
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user