InjectAdapter
@tsed/adapters
Usage
typescript
import { InjectAdapter } from "@tsed/adapters";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.