Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/model/src/main.ts>Model#select

model based mongo for deno
Latest
method Model.prototype.select
import { Model } from "https://deno.land/x/model@v1.2/src/main.ts";

Type Parameters

projection extends ProjectionType<Schema> | unknown
multiple extends boolean | unknown
populate extends
| true
| string
| string[]
| unknown

Parameters

optional
filter: Filter<Schema>
optional
options: Omit<FindOptions, "projection"> & { multiple?: multiple; populate?: populate; projection?: projection; }

Returns

Promise<SelectResult<projection, Schema, populateSchema, populate, multiple>>