feat: Disable index-field validation to create index for fields that don't yet exist (#8137)
This commit is contained in:
@@ -37,7 +37,7 @@ export class GridFSBucketAdapter extends FilesAdapter {
|
||||
const defaultMongoOptions = {
|
||||
};
|
||||
const _mongoOptions = Object.assign(defaultMongoOptions, mongoOptions);
|
||||
for (const key of ['enableSchemaHooks', 'schemaCacheTtl', 'maxTimeMS']) {
|
||||
for (const key of ['enableSchemaHooks', 'schemaCacheTtl', 'maxTimeMS', 'disableIndexFieldValidation']) {
|
||||
delete _mongoOptions[key];
|
||||
}
|
||||
this._mongoOptions = _mongoOptions;
|
||||
|
||||
Reference in New Issue
Block a user