How to generate the schema code Delete the code in graph/schema.resolvers.go Run the following command at the root level go run github.com/99designs/gqlgen generate Tutorial https://www.apollographql.com/blog/graphql/golang/using-graphql-with-golang/#defining-mutations Querying in the playground