Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix example to have the correct input object type
  • Loading branch information
mpoindexter committed Dec 12, 2018
1 parent 3e493e7 commit dd4a99d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/starwars/query.go
Expand Up @@ -30,7 +30,7 @@ func (*Query) ResolveRandom() humanOrDroid {
}}
}

func (*Query) ResolveHuman(lookup lookupInput) (*human, error) {
func (*Query) ResolveHuman(lookup *lookupInput) (*human, error) {
if !lookup.ID.Nil() {
return humans[lookup.ID.String()], nil
}
Expand Down

0 comments on commit dd4a99d

Please sign in to comment.