@graphql-mesh/tuql
Version:
17 lines (16 loc) • 423 B
JavaScript
import { loadGraphQLSchemaFromOptions } from '@omnigraph/sqlite';
export default class TuqlHandler {
constructor({ config, baseDir }) {
this.config = config;
this.baseDir = baseDir;
}
async getMeshSource() {
const schema = await loadGraphQLSchemaFromOptions({
...this.config,
cwd: this.baseDir,
});
return {
schema,
};
}
}