Skip to content

InjectAdapter

@tsed/adapters

Usage

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

See /packages/orm/adapters/src/types/decorators/injectAdapter.ts.

Overview

ts
function InjectAdapter(options: AdapterInvokeOptions): PropertyDecorator;
export function InjectAdapter(model: Type<any>, options?: Partial<Omit<AdapterInvokeOptions, "client">>): PropertyDecorator;
export function InjectAdapter(collectionName: string, model: Type<any>, options?: Partial<Omit<AdapterInvokeOptions, "collectionName" | "client">>): PropertyDecorator;

Description

Inject the adapter in the property.

Released under the MIT License.