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

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

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

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

await Flight.find("1");

Returns

Promise<Model>

Returns

Promise<Model[]>