Skip to content
This repository was archived by the owner on Oct 9, 2025. It is now read-only.

Commit 499a0c8

Browse files
committed
#47 update documentation (README.md)
1 parent ea8c622 commit 499a0c8

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

README.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,52 @@ let { body: countries } = await client
108108
.from('countries')
109109
.select('name')
110110
.order('name')
111+
112+
// Ordering for foreign tables
113+
let { body: countries } = await client
114+
.from('countries')
115+
.select(`
116+
name,
117+
cities (
118+
name
119+
)
120+
`)
121+
.order('cities.name')
111122

123+
// Limiting
124+
let { body: countries } = await client
125+
.from('countries')
126+
.select('*')
127+
.limit(1)
128+
129+
// Limiting for foreign tables
130+
let { body: countries } = await client
131+
.from('countries')
132+
.select(`
133+
name,
134+
cities (
135+
name
136+
)
137+
`)
138+
.limit(1, 'cities')
139+
140+
// Setting offsets
141+
let { body: countries } = await client
142+
.from('countries')
143+
.select('*')
144+
.offset(1)
145+
146+
// Setting offsets for foreign tables
147+
let { body: countries } = await client
148+
.from('countries')
149+
.select(`
150+
name,
151+
cities (
152+
name
153+
)
154+
`)
155+
.offset(1, 'cities')
156+
112157
// Pagination
113158
let { body: countries } = await client
114159
.from('countries')

0 commit comments

Comments
 (0)