Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Paging Helpers #7157

Merged
merged 4 commits into from
Jun 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading