mongo2elastic
Version:
Sync MongoDB collections to Elasticsearch
8 lines (7 loc) • 335 B
TypeScript
import type { Collection } from 'mongodb';
export declare const indexFromCollection: (collection: Collection) => string;
export declare const indexFromDbAndCollection: (collection: Collection) => string;
/**
* Does arr start with startsWith array.
*/
export declare const arrayStartsWith: (arr: any[], startsWith: any[]) => boolean;