Skip to content

Commit

Permalink
Merge pull request 99designs#300 from 99designs/fix-starwars-connecti…
Browse files Browse the repository at this point in the history
…on-example

fix connection example
  • Loading branch information
vektah authored Aug 21, 2018
2 parents 597dda5 + d56ed47 commit ebaab0f
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 ebaab0f

Please sign in to comment.