chore: Update Dockerfile CMD for schema path, log schema loading path in schema.ts, and adjust IntelliJ workspace
This commit is contained in:
parent
437321ef6d
commit
8e5fbc3f57
3 changed files with 14 additions and 3 deletions
|
|
@ -27,6 +27,7 @@ const createZabbixHierarchicalDeviceTagsResolver =
|
|||
export async function schema_loader(): Promise<GraphQLSchema> {
|
||||
const resolvers = createResolvers();
|
||||
const schemaPath = process.env.SCHEMA_PATH || './schema/';
|
||||
console.log(`Loading schema from path: ${schemaPath}, cwd=${process.cwd()}`);
|
||||
var schemaFiles = readdirSync(schemaPath).filter(fn => fn.endsWith('.graphql'));
|
||||
let typeDefs: string = "";
|
||||
for (const schemaFile of schemaFiles) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue