Skip to content

Commit

Permalink
Merge pull request #300 from 99designs/fix-starwars-connection-example
Browse files Browse the repository at this point in the history
fix connection example
  • Loading branch information
vektah authored Aug 21, 2018
2 parents 2c4e6cb + d6acec1 commit e15d789
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 e15d789

Please sign in to comment.