Skip to content

AdapterConstructorOptions

@tsed/adapters

Usage ​

typescript
import { AdapterConstructorOptions } from "@tsed/adapters";

See /packages/orm/adapters/src/domain/Adapter.ts.

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>;
 };

Released under the MIT License.