장재혁

Add database settings

......@@ -6,10 +6,10 @@
},
"scripts": {
"build": "lerna run build",
"build:api" : "lerna exec --scrop @graphql-community/api --stream yarn build",
"build:web": "lerna exec --scrop @graphql-community/api --stream yarn build",
"dev:web": "lerna exec --scrop @graphql-community/web --stream yarn dev",
"dev:api": "lerna exec --scrop @graphql-community/api --stream yarn start:dev"
"build:api" : "lerna exec --scope @graphql-community/api --stream yarn build",
"build:web": "lerna exec --scope @graphql-community/api --stream yarn build",
"dev:web": "lerna exec --scope @graphql-community/web --stream yarn dev",
"dev:api": "lerna exec --scope @graphql-community/api --stream yarn start:dev"
},
"workspaces": [
"packages/**"
......
No preview for this file type
......@@ -14,9 +14,10 @@ import { MypageModule } from './mypage/mypage.module';
}),
TypeOrmModule.forRoot({
type: 'sqlite',
database: ':memory:',
database: 'database.db',
entities: ['dist/**/*.entity{.ts,.js}'],
synchronize: true,
logging: false,
}),
MypageModule,
],
......
......@@ -2,7 +2,7 @@
import { ObjectType, Field, Int } from '@nestjs/graphql';
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
@Entity()
@Entity({ name: 'my_pagelist' })
@ObjectType()
export class MyPage {
@PrimaryGeneratedColumn()
......