package graphql import "github.com/graphql-go/graphql" func newGraphqlSchema() (graphql.Schema, error) { rootQuery := graphql.ObjectConfig{ Name: "RootQuery", Fields: graphql.Fields{ "hello": &graphql.Field{ Type: graphql.String, }, }, } schemaConfig := graphql.SchemaConfig{ Query: graphql.NewObject(rootQuery), } return graphql.NewSchema(schemaConfig) }