Skip to content

Commit d0b507b

Browse files
committed
Added type: auto default back. Fixes #21.
1 parent 233ce28 commit d0b507b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/collection.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,11 @@ extend(BaseCollection.prototype, {
187187
path: 'import',
188188
body: data,
189189
ld: Boolean(opts.type !== 'array'),
190-
qs: extend({}, opts, {collection: this.name})
190+
qs: extend({
191+
type: 'auto'
192+
}, opts, {
193+
collection: this.name
194+
})
191195
}, function (err, body) {
192196
if (err) callback(err);
193197
else callback(null, body);

0 commit comments

Comments
 (0)