From d6acec162547ee261961de22da28cd219df4a24d Mon Sep 17 00:00:00 2001 From: Adam Scarr Date: Tue, 21 Aug 2018 17:28:14 +1000 Subject: [PATCH] fix connection example --- example/starwars/resolvers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/starwars/resolvers.go b/example/starwars/resolvers.go index 3057e613777..50a1625f197 100644 --- a/example/starwars/resolvers.go +++ b/example/starwars/resolvers.go @@ -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