Skip to main content
Module

x/denodb/mod.ts>Model.select

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

Indicate which fields should be returned/selected from the query.

await Flight.select("id").get();

await Flight.select("id", "destination").get();

Type Parameters

T extends ModelSchema

Parameters

this: T
...fields: (string | FieldAlias)[]