import { mongoose } from "https://deno.land/x/mongoose@8.6.4/types/index.d.ts";
const { model } = mongoose;
Type Parameters
optional
TSchema extends Schema = anyReturns
Model<InferSchemaType<TSchema>, ObtainSchemaGeneric<TSchema, "TQueryHelpers">, ObtainSchemaGeneric<TSchema, "TInstanceMethods">, ObtainSchemaGeneric<TSchema, "TVirtuals">, HydratedDocument<InferSchemaType<TSchema>, ObtainSchemaGeneric<TSchema, "TVirtuals"> & ObtainSchemaGeneric<TSchema, "TInstanceMethods">, ObtainSchemaGeneric<TSchema, "TQueryHelpers">>, TSchema> & ObtainSchemaGeneric<TSchema, "TStaticMethods">
Parameters
optional
options: CompileModelOptionsParameters
optional
schema: Schema<T, any, any, TQueryHelpers, any, any, any>optional
options: CompileModelOptions