Commit 2155537 1 parent 0c95735 commit 2155537 Copy full SHA for 2155537
File tree 1 file changed +10
-2
lines changed
packages/core/modules-sdk/src/remote-query
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -224,13 +224,21 @@ export class Query {
224
224
pagination,
225
225
} ) ) as unknown as GraphResultSet < TEntry >
226
226
227
- delete queryOptions . pagination
228
227
delete queryOptions . filters
229
228
229
+ const graphOptions : RemoteQueryInput < TEntry > = {
230
+ ...queryOptions ,
231
+ pagination : {
232
+ // We pass through `take` to force the `select-in` query strategy
233
+ // There might be a better way to do this, but for now this should do
234
+ take : queryOptions . pagination ?. take ,
235
+ } ,
236
+ }
237
+
230
238
let finalResultset : GraphResultSet < TEntry > = indexResponse
231
239
232
240
if ( indexResponse . data . length ) {
233
- finalResultset = await this . graph ( queryOptions , {
241
+ finalResultset = await this . graph ( graphOptions , {
234
242
...options ,
235
243
initialData : indexResponse . data ,
236
244
} )
You can’t perform that action at this time.
0 commit comments