import { Model } from "https://dotland.deno.dev/x/denodb@v1.4.0/lib/model.ts";
Count the number of records of a model or filtered by a field name.
await Flight.count();
await Flight.where("destination", "Dublin").count();
import { Model } from "https://dotland.deno.dev/x/denodb@v1.4.0/lib/model.ts";
Count the number of records of a model or filtered by a field name.
await Flight.count();
await Flight.where("destination", "Dublin").count();