Closed jasonzhouu closed 2 years ago
qb.select(["foo", "bar"]) .setJoin({ field: "company" }) .setJoin({ field: "profile", select: ["name", "email"] }) .sortBy({ field: "bar", order: "DECS" }) .setLimit(20) .setPage(3) .resetCache() .query();
the line of: .sortBy({ field: "bar", order: "DECS" })
.sortBy({ field: "bar", order: "DECS" })
DECS
DESC
type QuerySortOperator = 'ASC' | 'DESC';
the line of:
.sortBy({ field: "bar", order: "DECS" })
DECS
change toDESC
type QuerySortOperator = 'ASC' | 'DESC';
, code link