GitHub repository: will-abule/mongodb-collection-query-with-mongoose
Primary language: TypeScript
Description: This is use to query a single  mongodb collection written with mongoose dynamically with simple query parameters using mongodb query types 'AND' and 'OR' with  mongodb filter options eg '$gt' as 'gt', '$gte' as 'gte', '$lt' as 'lt', '$lte' as 'lte', '$eq' as 'eq' and 'cn' for case insentitive query for contains replacing mongodb regax expression eg '/.*Will Abule.*/i'. The client(s) consuming your API just has to follow simple roles or better a query structure and it dynamically query and return and objest as the result containing four fields rows reprecenting the queried data records reprecenting the total records found based on the filter page reperecenting the current page and total representing the number of pages