From eefa2ccac7cf5248f5be9396b124b2772cc4a07c Mon Sep 17 00:00:00 2001 From: Drew Date: Sun, 22 May 2016 06:33:59 -0700 Subject: [PATCH] Handle "bytes" type in DB. Fixes #1821. (#1866) --- src/Adapters/Storage/Mongo/MongoSchemaCollection.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Adapters/Storage/Mongo/MongoSchemaCollection.js b/src/Adapters/Storage/Mongo/MongoSchemaCollection.js index a51edc2a..11db8a37 100644 --- a/src/Adapters/Storage/Mongo/MongoSchemaCollection.js +++ b/src/Adapters/Storage/Mongo/MongoSchemaCollection.js @@ -25,6 +25,7 @@ function mongoFieldToParseSchemaField(type) { case 'array': return {type: 'Array'}; case 'geopoint': return {type: 'GeoPoint'}; case 'file': return {type: 'File'}; + case 'bytes': return {type: 'Bytes'}; } }