UNPKG

popurelate

Version:

Easily populate and filter documents using data from related collections.

6 lines (5 loc) 344 B
import { Populeration, RelationOptions } from ".."; export declare const addMongooseRelations: (db: Populeration<any, any>, options?: { logger?: ((...args: any[]) => void) | undefined; }) => void; export declare const getMongooseModelRelations: (models: Record<any, any>) => Record<string, Record<any, string | RelationOptions<any>>>;