package graphql import "github.com/graphql-go/graphql" func graphqlSchema() (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) }