@graphql-mesh/tuql
Version:
20 lines (19 loc) • 511 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
const sqlite_1 = require("@omnigraph/sqlite");
class TuqlHandler {
constructor({ config, baseDir }) {
this.config = config;
this.baseDir = baseDir;
}
async getMeshSource() {
const schema = await (0, sqlite_1.loadGraphQLSchemaFromOptions)({
...this.config,
cwd: this.baseDir,
});
return {
schema,
};
}
}
exports.default = TuqlHandler;
;