Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/denodb/lib/model.ts>Model.find

MySQL, SQLite, MariaDB, PostgreSQL and MongoDB ORM for Deno
Latest
method Model.find
import { Model } from "https://deno.land/x/denodb@v1.4.0/lib/model.ts";

Find one or multiple records based on the model primary key.

await Flight.find("1");

Parameters

idOrIds: FieldValue

Returns

Promise<Model>

Parameters

idOrIds: FieldValue[]

Returns

Promise<Model[]>