Skip to content

Commit 3ce8691

Browse files
committed
fix: add missing import in doc + upgrading docker image version
1 parent 7d60940 commit 3ce8691

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

documentation/docs/introduction/example.mdx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ npx nest g cl todo-item.create.dto todo-item --flat
270270

271271

272272
```ts title="todo-item/todo-item.create.dto.ts"
273+
import { Field, InputType } from '@nestjs/graphql';
273274
import { IsBoolean, IsString } from 'class-validator';
274275

275276
@InputType('CreateTodoItem')
@@ -453,6 +454,7 @@ import { TodoItemModule } from './todo-item/todo-item.module';
453454
type: 'postgres',
454455
database: 'gettingstarted',
455456
username: 'gettingstarted',
457+
password: 'gettingstarted',
456458
autoLoadEntities: true,
457459
synchronize: true,
458460
logging: true,
@@ -567,17 +569,16 @@ export class AppModule {}
567569
</TabItem>
568570
</Tabs>
569571

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
571573

572574
```dockerfile
573-
version: "3"
574-
575575
services:
576576
postgres:
577-
image: "postgres:11.5"
577+
image: "postgres:17.0-alpine3.20"
578578
environment:
579579
- "POSTGRES_USER=gettingstarted"
580580
- "POSTGRES_DB=gettingstarted"
581+
- "POSTGRES_PASSWORD=gettingstarted"
581582
expose:
582583
- "5432"
583584
ports:

0 commit comments

Comments
 (0)