diff --git a/packages/autocomplete/index.spec.ts b/packages/autocomplete/index.spec.ts index 3630dfe8f0..127c954942 100644 --- a/packages/autocomplete/index.spec.ts +++ b/packages/autocomplete/index.spec.ts @@ -230,7 +230,7 @@ describe('completer.completer', () => { it('returns all suggestions', async() => { const i = 'db.shipwrecks.'; const collComplete = Object.keys(shellSignatures.Collection.attributes as any); - const adjusted = collComplete.filter(c => !['count', 'update', 'remove', 'insert', 'save', 'findAndModify'].includes(c)).map(c => `${i}${c}`); + const adjusted = collComplete.filter(c => !['count', 'update', 'remove', 'insert', 'save', 'findAndModify', 'reIndex'].includes(c)).map(c => `${i}${c}`); expect(await completer(sharded440, i)).to.deep.equal([adjusted, i]); }); diff --git a/packages/shell-api/src/collection.ts b/packages/shell-api/src/collection.ts index be56d969bc..bf55ce72b3 100644 --- a/packages/shell-api/src/collection.ts +++ b/packages/shell-api/src/collection.ts @@ -1193,6 +1193,7 @@ export default class Collection extends ShellApiWithMongoClass { * @return {Promise} */ @returnsPromise + @topologies([Topologies.Standalone]) async reIndex(): Promise { this._emitCollectionApiCall('reIndex'); return await this._mongo._serviceProvider.runCommandWithCheck(this._database._name, {