Skip to content

Commit 1baaaa2

Browse files
authored
Update README.md
1 parent 12d4a90 commit 1baaaa2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ $this->filterApiRequest($request, $query);
7272

7373
`.../model?filter[field]=operator`
7474

75+
`.../model?with[]=relation1`
76+
7577
### Operators:
7678
like, notlike, today (for timestamps), nottoday (for timestamps), null, notnull,
7779
ge (greater or equal), gt (greater), le (lower or equal), lt (lower), eq (equal)
@@ -102,6 +104,10 @@ Matches the top 10 users with age of 21 or older sorted by name in ascending ord
102104

103105
`.../users?filter[age]=ge:21&order[name]=asc&limit=10`
104106

107+
Join posts-relation on users
108+
109+
`.../users?with[]=posts`
110+
105111
### Known issues
106112

107113
* Sorting by related fields doesn't work yet.

0 commit comments

Comments
 (0)