import { PostgrestTransformBuilder } from "https://deno.land/x/postgrest@1.1.0/src/lib/PostgrestTransformBuilder.ts";
Post-filters (transforms)
Methods
limit(count: number, unnamed 1?: { foreignTable?: string; }): this
Limits the result with the specified count
.
maybeSingle(): PromiseLike<PostgrestMaybeSingleResponse<T>>
Retrieves at most one row from the result. Result must be at most one row
(e.g. using eq
on a UNIQUE column), otherwise this will result in an
error.
order(column: keyof T, unnamed 1?: { ascending?: boolean; nullsFirst?: boolean; foreignTable?: string; }): this
Orders the result with the specified column
.
range(): this
from: number,
to: number,
unnamed 2?: { foreignTable?: string; },
Limits the result to rows within the specified range, inclusive.
single(): PromiseLike<PostgrestSingleResponse<T>>
Retrieves only one row from the result. Result must be one row (e.g. using
limit
), otherwise this will result in an error.