Type alias DocumentType<T, QueryHelpers>

DocumentType<T, QueryHelpers>: mongoose.Document<unknown, QueryHelpers, T> & Require_id<T> & IObjectWithTypegooseFunction

Get the Type of an instance of a Document with Class properties

Type Parameters

Example

class ClassName {
@prop()
public someProperty: string;
}
const NameModel = getModelForClass(ClassName);

const doc: DocumentType<ClassName> = await NameModel.create({});

Generated using TypeDoc