Ladybug version
v0.17.0
What operating system are you using?
linux
What happened?
Open type graphs seem unusable due to error about missing table.
Also would be nice if it were possible to make the default graph an open type, instead of having to create a graph and switch to it.
Are there known steps to reproduce?
lbug-test.js:
import lbug from "@ladybugdb/core";
async function main() {
let db = new lbug.Database('example.lbug');
let conn = new lbug.Connection(db);
await conn.init();
try {
await conn.query(`CREATE GRAPH main ANY;`);
} catch (e) {
console.warn("failed to create graph 'main', it may already exist. Error:", { error: e });
}
await conn.query(`USE GRAPH main;`);
const res1 = await conn.query(`CREATE (test:Test { a: 1 }) return test`);
console.log("Result:", res1);
}
main().catch((err) => {
console.error("Error in main:", err);
process.exit(1);
});
node --experimental-default-type=module lbug-test.js
output:
> node --experimental-default-type=module lbug-test.js
Error in main: [Error: Binder exception: Table Test does not exist.]
Ladybug version
v0.17.0
What operating system are you using?
linux
What happened?
Open type graphs seem unusable due to error about missing table.
Also would be nice if it were possible to make the default graph an open type, instead of having to create a graph and switch to it.
Are there known steps to reproduce?
lbug-test.js:
output: