UNPKG

mongoose-atlas-search

Version:

A customisable mongoose plugin to use MongoDB Atlas Search feature

13 lines (12 loc) 320 B
interface IPluginOptions { model: object; searchKey?: string; overwriteFind?: boolean; path?: string | [string]; searchFunction?: (query: string) => object; addFields?: object; } declare const atlasSearchPlugin: { initialize: (options: IPluginOptions) => void; }; export = atlasSearchPlugin;