Sindbad~EG File Manager

Current Path : /home/infinitibizsol/.trash/node_modules.9/mongodb/src/cursor/
Upload File :
Current File : /home/infinitibizsol/.trash/node_modules.9/mongodb/src/cursor/list_search_indexes_cursor.ts

import type { Collection } from '../collection';
import type { AggregateOptions } from '../operations/aggregate';
import { AggregationCursor } from './aggregation_cursor';

/** @public */
export type ListSearchIndexesOptions = AggregateOptions;

/** @public */
export class ListSearchIndexesCursor extends AggregationCursor<{ name: string }> {
  /** @internal */
  constructor(
    { fullNamespace: ns, client }: Collection,
    name: string | null,
    options: ListSearchIndexesOptions = {}
  ) {
    const pipeline =
      name == null ? [{ $listSearchIndexes: {} }] : [{ $listSearchIndexes: { name } }];
    super(client, ns, pipeline, options);
  }
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists