File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ APP_PORT=3003
44APP_KEY = ZrNbOZJAjC2MDzqehhsGV2DzFFI4pz5R
55
66DB_HOST = localhost
7- DB_PORT = 3002
7+ DB_PORT = 5432
88DB_NAME = postgres
99DB_USERNAME = postgres
1010DB_PASSWORD = postgres
You can’t perform that action at this time.
0 commit comments