change: query builder fetch all
This commit is contained in:
parent
7904a98d5f
commit
da78c17235
3 changed files with 35 additions and 21 deletions
|
@ -36,9 +36,10 @@ export async function getTableMetaByTablename(req: Request, res: Response): Prom
|
|||
export async function executeQuery(req: Request, res: Response): Promise<any> {
|
||||
let offset = parseInt((req.query.offset as string) ?? "0");
|
||||
let count = parseInt((req.query.count as string) ?? "25");
|
||||
let noLimit = req.query.noLimit === "true";
|
||||
const query = req.body.query;
|
||||
|
||||
let result = await DynamicQueryBuilder.executeQuery(query, offset, count);
|
||||
let result = await DynamicQueryBuilder.executeQuery({ query, offset, count, noLimit });
|
||||
|
||||
res.json(result);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue