added batching for postgres

This commit is contained in:
dswbx
2025-03-07 19:40:58 +01:00
parent 3704cad53a
commit a4cb012ce8
7 changed files with 53 additions and 5 deletions

View File

@@ -21,7 +21,7 @@ describe.skipIf(ALL_TESTS)("postgres", () => {
plugins: [new ParseJSONResultsPlugin()],
});
console.log(await introspector.getSchema());
console.log(await introspector.getSchemaSpec());
});
test("builds", async () => {
@@ -50,6 +50,11 @@ describe.skipIf(ALL_TESTS)("postgres", () => {
await app.build({ sync: true });
/*await app.em
.mutator("posts")
.insertMany([{ title: "hello world" }, { title: "hello world 2" }]);*/
expect(app.version()).toBeDefined();
console.log(await app.em.repo("posts").findMany());
});
});