We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29c9878 commit a561eddCopy full SHA for a561edd
src/Adapters/Storage/Mongo/MongoStorageAdapter.js
@@ -315,7 +315,7 @@ export class MongoStorageAdapter implements StorageAdapter {
315
...indexOptions,
316
});
317
const fieldCopy = deepcopy(field);
318
- if (indexOptions) {
+ if (Object.keys(indexOptions).length) {
319
fieldCopy._options = indexOptions;
320
}
321
existingIndexes[name] = fieldCopy;
0 commit comments