feat: graphql + typeorm + config + postgresql

This commit is contained in:
Ivan Li
2021-01-31 13:32:15 +08:00
parent a77e22edd0
commit 7ba5e220d9
8 changed files with 4666 additions and 231 deletions

View File

@ -0,0 +1,9 @@
import { readFileSync } from 'fs';
import * as yaml from 'js-yaml';
import { join } from 'path';
export default () => {
return yaml.load(
readFileSync(join(__dirname, '../../../config.yml'), 'utf8'),
) as unknown;
};