Skip to content

Commit cac258b

Browse files
committed
correct pagination args
1 parent 742fa7b commit cac258b

File tree

2 files changed

+23
-29
lines changed

2 files changed

+23
-29
lines changed

test/expected/page_info.out

Lines changed: 22 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ begin;
525525
graphql.resolve($$
526526
{
527527
accountCollection(
528-
first: 2,
528+
first: 1,
529529
offset: 1,
530530
after: "Wzdd" # id = 7
531531
) {
@@ -545,33 +545,27 @@ begin;
545545
}
546546
$$)
547547
);
548-
jsonb_pretty
549-
------------------------------------------
550-
{ +
551-
"data": { +
552-
"accountCollection": { +
553-
"edges": [ +
554-
{ +
555-
"node": { +
556-
"id": 9 +
557-
}, +
558-
"cursor": "Wzld" +
559-
}, +
560-
{ +
561-
"node": { +
562-
"id": 10 +
563-
}, +
564-
"cursor": "WzEwXQ=="+
565-
} +
566-
], +
567-
"pageInfo": { +
568-
"endCursor": "WzEwXQ==",+
569-
"hasNextPage": false, +
570-
"startCursor": "Wzld", +
571-
"hasPreviousPage": true +
572-
} +
573-
} +
574-
} +
548+
jsonb_pretty
549+
-----------------------------------------
550+
{ +
551+
"data": { +
552+
"accountCollection": { +
553+
"edges": [ +
554+
{ +
555+
"node": { +
556+
"id": 9 +
557+
}, +
558+
"cursor": "Wzld" +
559+
} +
560+
], +
561+
"pageInfo": { +
562+
"endCursor": "Wzld", +
563+
"hasNextPage": true, +
564+
"startCursor": "Wzld", +
565+
"hasPreviousPage": true+
566+
} +
567+
} +
568+
} +
575569
}
576570
(1 row)
577571

test/sql/page_info.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ begin;
211211
graphql.resolve($$
212212
{
213213
accountCollection(
214-
first: 2,
214+
first: 1,
215215
offset: 1,
216216
after: "Wzdd" # id = 7
217217
) {

0 commit comments

Comments
 (0)