* Adds support for Long and Double mongodb types (fixes #1316) * Use bigger numbers
This commit is contained in:
@@ -654,6 +654,14 @@ function untransformObject(schema, className, mongoObject, isNestedObject = fals
|
||||
return Parse._encode(mongoObject);
|
||||
}
|
||||
|
||||
if (mongoObject instanceof mongodb.Long) {
|
||||
return mongoObject.toNumber();
|
||||
}
|
||||
|
||||
if (mongoObject instanceof mongodb.Double) {
|
||||
return mongoObject.value;
|
||||
}
|
||||
|
||||
if (BytesCoder.isValidDatabaseObject(mongoObject)) {
|
||||
return BytesCoder.databaseToJSON(mongoObject);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user