Skip to content

Commit

Permalink
Fixed Paging Helpers (#7157)
Browse files Browse the repository at this point in the history
  • Loading branch information
PascalSenn authored Jun 12, 2024
1 parent 7f3b67b commit 41dee1d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ private static Connection<T> CreateConnection<T>(Page<T> page) where T : class
return new Connection<T>(
page.Items.Select(t => new Edge<T>(t, page.CreateCursor)).ToArray(),
new ConnectionPageInfo(
page.HasPreviousPage,
page.HasNextPage,
page.HasPreviousPage,
CreateCursor(page.First, page.CreateCursor),
CreateCursor(page.Last, page.CreateCursor)));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
}
],
"pageInfo": {
"hasNextPage": true,
"hasPreviousPage": false,
"hasNextPage": false,
"hasPreviousPage": true,
"startCursor": "QnJhbmQwOjE=",
"endCursor": "QnJhbmQxNzoxOA=="
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
}
],
"pageInfo": {
"hasNextPage": true,
"hasPreviousPage": false,
"hasNextPage": false,
"hasPreviousPage": true,
"startCursor": "QnJhbmQxODoxOQ==",
"endCursor": "QnJhbmQxOToyMA=="
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -458,12 +458,12 @@ public async Task Create_ShortNullableNotEqual_Expression()
// act
var res1 = await tester.ExecuteAsync(
OperationRequestBuilder.Create()
.SetDocument("{ root(where: { barShort: { neq: \"Rm9vOjEy==\"}}){ barShort}}")
.SetDocument("{ root(where: { barShort: { neq: \"Rm9vOjEy\"}}){ barShort}}")
.Build());

var res2 = await tester.ExecuteAsync(
OperationRequestBuilder.Create()
.SetDocument("{ root(where: { barShort: { neq: \"Rm9vOjEz==\"}}){ barShort}}")
.SetDocument("{ root(where: { barShort: { neq: \"Rm9vOjEz\"}}){ barShort}}")
.Build());

var res3 = await tester.ExecuteAsync(
Expand Down

0 comments on commit 41dee1d

Please sign in to comment.