Skip to content

Commit ea118fb

Browse files
authored
* fix: Correct typos in the database like example. (#172)
1 parent f9597ba commit ea118fb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/06-concepts/06-database/07-relation-queries.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,13 @@ var user = await Company.db.findById(
125125
employeeId,
126126
include: Company.include(
127127
employees: Employee.includeList(
128-
where: (t) => t.name.ilike('a%')
128+
where: (t) => t.name.like('a%')
129129
),
130130
),
131-
);`
131+
);
132132
```
133133

134-
The example above retrieves only employees whose names start with the letter 'a':
134+
The example above retrieves only employees whose names start with the letter 'a'.
135135

136136
#### Sort
137137

@@ -161,14 +161,14 @@ var user = await Company.db.findById(
161161
employeeId,
162162
include: Company.include(
163163
employees: Employee.includeList(
164-
limit: 100,
164+
limit: 10,
165165
offset: 10,
166166
),
167167
),
168168
);
169169
```
170170

171-
The example above retrieves the next 100 employees starting from the 11th record:
171+
The example above retrieves the next 10 employees starting from the 11th record:
172172

173173
Using these methods in conjunction provides a powerful way to query, filter, and sort relational data efficiently.
174174

0 commit comments

Comments
 (0)