This commit is contained in:
Rizky 2024-07-07 08:05:34 +07:00
parent 4a1b05dd56
commit 36f795222a
1 changed files with 1 additions and 3 deletions

View File

@ -24,6 +24,7 @@ export const execQuery = async (args: DBArg, prisma: any) => {
mode: "field" | "relation"; mode: "field" | "relation";
}; };
}; };
console.log(arg);
if (arg) { if (arg) {
const { table, where, data } = arg; const { table, where, data } = arg;
const mode = arg.mode || "field"; const mode = arg.mode || "field";
@ -37,9 +38,6 @@ export const execQuery = async (args: DBArg, prisma: any) => {
.findAllByType("model", {}) .findAllByType("model", {})
.map((e) => e?.name) as string[]; .map((e) => e?.name) as string[];
console.log("iud", arg);
return { hr: "hello" };
if (schema_table) { if (schema_table) {
let pks: Property[] = []; let pks: Property[] = [];
for (const col of schema_table.properties) { for (const col of schema_table.properties) {