Skip to content

Commit

Permalink
fix connection example
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Scarr committed Aug 21, 2018
1 parent 2c4e6cb commit d6acec1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/starwars/resolvers.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (r *friendsConnectionResolver) Edges(ctx context.Context, obj *FriendsConne
for i := range edges {
edges[i] = FriendsEdge{
Cursor: encodeCursor(obj.from + i),
Node: friends[i],
Node: friends[obj.from+i],
}
}
return edges, nil
Expand Down

0 comments on commit d6acec1

Please sign in to comment.