diff --git a/example/starwars/server/server.go b/example/starwars/server/server.go index 10c34055a4d..ce1a30fe0c8 100644 --- a/example/starwars/server/server.go +++ b/example/starwars/server/server.go @@ -12,11 +12,7 @@ import ( var schema *graphql.Schema func init() { - var err error - schema, err = graphql.ParseSchema(starwars.Schema, &starwars.Resolver{}) - if err != nil { - panic(err) - } + schema = graphql.MustParseSchema(starwars.Schema, &starwars.Resolver{}) } func main() {