popurelate
Version:
Easily populate and filter documents using data from related collections.
6 lines (5 loc) • 344 B
TypeScript
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>>>;