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

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

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

Group rows by a given field.

await Flight.groupBy('departure').all();

Parameters

this: T
field: string