Skip to content

Commit

Permalink
Rename friendsConenctionArgs to friendsConnectionArgs
Browse files Browse the repository at this point in the history
Fix spelling error in friendsConnectionArgs type
  • Loading branch information
iandelahorne authored and neelance committed Jul 17, 2017
1 parent 3965041 commit 52080e1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions example/starwars/starwars.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ func (r *Resolver) CreateReview(args *struct {
return &reviewResolver{review}
}

type friendsConenctionArgs struct {
type friendsConnectionArgs struct {
First *int32
After *graphql.ID
}
Expand All @@ -373,7 +373,7 @@ type character interface {
ID() graphql.ID
Name() string
Friends() *[]*characterResolver
FriendsConnection(friendsConenctionArgs) (*friendsConnectionResolver, error)
FriendsConnection(friendsConnectionArgs) (*friendsConnectionResolver, error)
AppearsIn() []string
}

Expand Down Expand Up @@ -419,7 +419,7 @@ func (r *humanResolver) Friends() *[]*characterResolver {
return resolveCharacters(r.h.Friends)
}

func (r *humanResolver) FriendsConnection(args friendsConenctionArgs) (*friendsConnectionResolver, error) {
func (r *humanResolver) FriendsConnection(args friendsConnectionArgs) (*friendsConnectionResolver, error) {
return newFriendsConnectionResolver(r.h.Friends, args)
}

Expand Down Expand Up @@ -451,7 +451,7 @@ func (r *droidResolver) Friends() *[]*characterResolver {
return resolveCharacters(r.d.Friends)
}

func (r *droidResolver) FriendsConnection(args friendsConenctionArgs) (*friendsConnectionResolver, error) {
func (r *droidResolver) FriendsConnection(args friendsConnectionArgs) (*friendsConnectionResolver, error) {
return newFriendsConnectionResolver(r.d.Friends, args)
}

Expand Down Expand Up @@ -550,7 +550,7 @@ type friendsConnectionResolver struct {
to int
}

func newFriendsConnectionResolver(ids []graphql.ID, args friendsConenctionArgs) (*friendsConnectionResolver, error) {
func newFriendsConnectionResolver(ids []graphql.ID, args friendsConnectionArgs) (*friendsConnectionResolver, error) {
from := 0
if args.After != nil {
b, err := base64.StdEncoding.DecodeString(string(*args.After))
Expand Down

0 comments on commit 52080e1

Please sign in to comment.