AdapterConstructorOptions
@tsed/adapters
Usage
typescript
import { AdapterConstructorOptions } from "@tsed/adapters";
Overview
ts
interface AdapterConstructorOptions<T = any> extends Record<string, any> {
model: Type<T> | Object;
collectionName?: string;
useAlias?: string;
indexes?: {
[propertyKey: string]: Record<string, any>;
};
}
model
ts
model: Type<T> | Object;
collectionName
ts
collectionName?: string;
useAlias
ts
useAlias?: string;
indexes
ts
indexes?: {
[propertyKey: string]: Record<string, any>;
};