UNPKG

outers

Version:

outers - a all in one package for your day to day use

15 lines (14 loc) 1.04 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>;