This commit is contained in:
Boris D
2025-09-22 18:35:02 +03:00
parent 51f8b0d773
commit fbbbd61838
23 changed files with 282 additions and 67 deletions

View File

@ -1,14 +1,17 @@
import createProject from "../functions/createProject";
import createQuery from "../functions/createQuery";
import runQuery from "../functions/runQuery";
import * as fs from "fs";
import * as path from "path";
(async () => {
try {
const project = await createProject("Test Project");
const payloadPath = path.join(__dirname, "case1-payload.js");
const query = await createQuery(
project,
"async function main(input) { return `Hello, ${input.name}!`; }"
fs.readFileSync(payloadPath, { encoding: "utf-8" })
);
console.log(query);