Skip to content

Commit

Permalink
fix(query-graphql): pass original query in keyset pager strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
psteinroe authored and doug-martin committed Sep 7, 2021
1 parent 2a7da59 commit 07f9e7b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class KeysetPagerStrategy<DTO> implements PagerStrategy<DTO> {
// Add 1 to the limit so we will fetch an additional node with the current node
const sorting = this.getSortFields(query, opts);
const filter = mergeFilter(query.filter ?? {}, this.createFieldsFilter(sorting, payload));
return { filter, paging, sorting };
return { ...query, filter, paging, sorting };
}

checkForExtraNode(nodes: DTO[], opts: KeySetPagingOpts<DTO>): DTO[] {
Expand Down

0 comments on commit 07f9e7b

Please sign in to comment.