Skip to content

Commit d43968f

Browse files
update doc (#85)
1 parent d569fb1 commit d43968f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/database/model/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ class Blog extends BlogGenerator {
175175
## New query
176176

177177
!!! info
178-
If you do not want to create new class and reuse existing class to do new query, use can use `newQuery` attribute.
178+
If you do not want to create new class and reuse existing class to do new query, use can use `query()` function.
179179

180180
=== "Example"
181181

@@ -184,8 +184,8 @@ class Blog extends BlogGenerator {
184184
List Blog> blogs = await blog.where('status', 'active')
185185
.where('user', 'super_user').get();
186186

187-
// reset existing get query and make new one using `newQuery`
188-
List Blog> blog = await blog.newQuery
187+
// reset existing get query and make new one using `query()`
188+
List Blog> blog = await blog.query()
189189
.where('status', 'deleted').where('user', 'normal').get();
190190
```
191191

packages/dox-app/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ APP_PORT=3003
44
APP_KEY=ZrNbOZJAjC2MDzqehhsGV2DzFFI4pz5R
55

66
DB_HOST=localhost
7-
DB_PORT=3002
7+
DB_PORT=5432
88
DB_NAME=postgres
99
DB_USERNAME=postgres
1010
DB_PASSWORD=postgres

0 commit comments

Comments
 (0)