File tree 1 file changed +5
-4
lines changed
documentation/docs/introduction
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -270,6 +270,7 @@ npx nest g cl todo-item.create.dto todo-item --flat
270
270
271
271
272
272
``` ts title="todo-item/todo-item.create.dto.ts"
273
+ import { Field , InputType } from ' @nestjs/graphql' ;
273
274
import { IsBoolean , IsString } from ' class-validator' ;
274
275
275
276
@InputType (' CreateTodoItem' )
@@ -453,6 +454,7 @@ import { TodoItemModule } from './todo-item/todo-item.module';
453
454
type: ' postgres' ,
454
455
database: ' gettingstarted' ,
455
456
username: ' gettingstarted' ,
457
+ password: ' gettingstarted' ,
456
458
autoLoadEntities: true ,
457
459
synchronize: true ,
458
460
logging: true ,
@@ -567,17 +569,16 @@ export class AppModule {}
567
569
</TabItem >
568
570
</Tabs >
569
571
570
- Create a ` docker- compose.yml` file in the root of the project
572
+ Create a ` compose.yml ` file in the root of the project
571
573
572
574
``` dockerfile
573
- version: "3"
574
-
575
575
services:
576
576
postgres:
577
- image: "postgres:11.5 "
577
+ image: "postgres:17.0-alpine3.20 "
578
578
environment:
579
579
- "POSTGRES_USER=gettingstarted"
580
580
- "POSTGRES_DB=gettingstarted"
581
+ - "POSTGRES_PASSWORD=gettingstarted"
581
582
expose:
582
583
- "5432"
583
584
ports:
You can’t perform that action at this time.
0 commit comments