UNPKG

mongosuper

Version:

mongosuper is a superset of mongoose. It is a wrapper around mongoose. It manage your mongoose connection and keep it alive always. It also provide you some extra features like CRUD operations, etc.

15 lines 1.07 kB
/** * The Find function takes in a filter, model, and limit, validates the filter, and returns the result * of finding documents in the model based on the filter and limit. * @param Filter - The filter is an array of objects that specifies the conditions that the documents * must meet in order to be returned by the find function. * @param model - The model parameter is a reference to a Mongoose model that represents a MongoDB * collection. It is used to perform database operations such as finding documents that match a certain * criteria. * @param limit - The limit parameter is used to specify the maximum number of documents to be returned * by the find function. It limits the number of documents that will be returned in the result set. * @returns The Find function is returning either an empty array if the Filter is not valid, or an * array of documents that match the Filter and are limited by the specified limit. */ export function Find(type: any, Filter: any, model: any, limit: any, skip: any): Promise<any>; //# sourceMappingURL=Read.d.ts.map