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

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

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

Similar to limit, limit the number of results returned from the query.

await Flight.take(10).get();

Parameters

this: T
limit: number