Skip to content

Commit

Permalink
* fix: Correct typos in the database like example. (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
macMikey authored Oct 7, 2024
1 parent f9597ba commit ea118fb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/06-concepts/06-database/07-relation-queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,13 @@ var user = await Company.db.findById(
employeeId,
include: Company.include(
employees: Employee.includeList(
where: (t) => t.name.ilike('a%')
where: (t) => t.name.like('a%')
),
),
);`
);
```

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

#### Sort

Expand Down Expand Up @@ -161,14 +161,14 @@ var user = await Company.db.findById(
employeeId,
include: Company.include(
employees: Employee.includeList(
limit: 100,
limit: 10,
offset: 10,
),
),
);
```

The example above retrieves the next 100 employees starting from the 11th record:
The example above retrieves the next 10 employees starting from the 11th record:

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

Expand Down

0 comments on commit ea118fb

Please sign in to comment.