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

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

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

Return the first record that matches the current query.

await Flight.where("id", ">", "1").first();