This repository was archived by the owner on Oct 9, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,52 @@ let { body: countries } = await client
108
108
.from (' countries' )
109
109
.select (' name' )
110
110
.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' )
111
122
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
+
112
157
// Pagination
113
158
let { body: countries } = await client
114
159
.from (' countries' )
You can’t perform that action at this time.
0 commit comments