chore: Update Dockerfile CMD for schema path, log schema loading path in schema.ts, and adjust IntelliJ workspace

This commit is contained in:
Andreas Hilbig 2026-01-14 14:21:14 +01:00
parent 437321ef6d
commit 8e5fbc3f57
3 changed files with 14 additions and 3 deletions

View file

@ -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) {