thrownewError('Cannot use comma in index fieldName')
thrownewError('Cannot use comma in index fieldName')
}
}
if(this.indexes[options.fieldName])return
this.indexes[options.fieldName]=newIndex(options)
const_options={
if(options.expireAfterSeconds!==undefined)this.ttlIndexes[options.fieldName]=options.expireAfterSeconds// With this implementation index creation is not necessary to ensure TTL but we stick with MongoDB's API here
if(options.expireAfterSeconds!==undefined)this.ttlIndexes[_options.fieldName]=_options.expireAfterSeconds// With this implementation index creation is not necessary to ensure TTL but we stick with MongoDB's API here
@ -90,7 +90,7 @@ describe('Indexes', function () {
})
})
it('Inserting twice for a compound fieldName the docs dont have with a unique and sparse index will not throw, since the docs will be non indexed',function(){
it('Inserting twice for a compound fieldName the docs dont have with a unique and sparse index will not throw, since the docs will be non indexed',function(){