File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
docs/06-concepts/06-database Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -125,13 +125,13 @@ var user = await Company.db.findById(
125
125
employeeId,
126
126
include: Company.include(
127
127
employees: Employee.includeList(
128
- where: (t) => t.name.ilike ('a%')
128
+ where: (t) => t.name.like ('a%')
129
129
),
130
130
),
131
- );`
131
+ );
132
132
```
133
133
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'.
135
135
136
136
#### Sort
137
137
@@ -161,14 +161,14 @@ var user = await Company.db.findById(
161
161
employeeId,
162
162
include: Company.include(
163
163
employees: Employee.includeList(
164
- limit: 100 ,
164
+ limit: 10 ,
165
165
offset: 10,
166
166
),
167
167
),
168
168
);
169
169
```
170
170
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:
172
172
173
173
Using these methods in conjunction provides a powerful way to query, filter, and sort relational data efficiently.
174
174
You can’t perform that action at this time.
0 commit comments