mongoose-restapi-ui
Version:
Rest api library for your mongoose apps, with react ui: mongoose-restapi-ui-component react library
25 lines (24 loc) • 804 B
TypeScript
import { Model } from 'mongoose';
import { FullPathTypes, InfoModel } from '../src/definitions/model';
export declare type CtxType = {
convertStep: {
$addFields: {
[key: string]: any;
};
};
fullPathTypes: FullPathTypes;
refFullPaths: string[];
stringFullPaths: string[];
numberFullPaths: string[];
booleanFullPaths: string[];
dateFullPaths: string[];
objectIdFullPaths: string[];
isNumber: (field: string) => boolean;
transformationMap: {
[key: string]: string;
};
};
declare const _default: (isMongo4: boolean, models: {
[key: string]: InfoModel;
}, model: Model<any>, ctx: CtxType, query: any, prevQuery: any, callback: (err: Error, docs?: any[]) => void) => void;
export default _default;