Skip to content

Commit

Permalink
rename schema string
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbloss committed Dec 24, 2024
1 parent 627b71e commit d8a1a72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,15 +197,15 @@ func GetSchema(client *opslevel.Client) (*GraphQLSchema, error) {
}

//go:embed schema.graphql
var schemaString string
var graphqlSchema string

func main() {
flag.Parse()

opts := []graphql.SchemaOpt{
graphql.UseStringDescriptions(),
}
schema := graphql.MustParseSchema(schemaString, nil, opts...)
schema := graphql.MustParseSchema(graphqlSchema, nil, opts...)
schemaAst := schema.ASTSchema()
genEnums(schemaAst.Enums)

Expand Down

0 comments on commit d8a1a72

Please sign in to comment.