We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using the "after" argument at friendsConnection query, the result list should be shifted.
The cursor values are shifted, but the result list always starts with the first value.
gqlgen/example/starwars/resolvers.go:
func (r *Resolver) FriendsConnection_edges(ctx context.Context, it *FriendsConnection) ([]FriendsEdge, error) { friends, err := r.resolveCharacters(ctx, it.ids) if err != nil { return nil, err } edges := make([]FriendsEdge, it.to-it.from) for i := range edges { edges[i] = FriendsEdge{ Cursor: encodeCursor(it.from + i), Node: friends[it.from + i], } } return edges, nil } `
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Expected Behaviour
When using the "after" argument at friendsConnection query, the result list should be shifted.
Actual Behavior
The cursor values are shifted, but the result list always starts with the first value.
Minimal graphql.schema and models to reproduce
gqlgen/example/starwars/resolvers.go:
The text was updated successfully, but these errors were encountered: