Skip to main content
Module

x/denodb_esgi/mod.ts>Model.select

MySQL, SQLite, MariaDB, PostgreSQL and MongoDB ORM for Deno
Latest
method Model.select
import { Model } from "https://deno.land/x/denodb_esgi@1.0.15.1/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)[]