Skip to content

Commit

Permalink
pass global enums to custom graphql parsing to be resolved
Browse files Browse the repository at this point in the history
i can't immediately recall why this is different from global enums
  • Loading branch information
lolopinto committed Aug 1, 2023
1 parent f176a25 commit 7f8f7a8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions internal/graphql/generate_ts_code.go
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,15 @@ func ParseRawCustomData(processor *codegen.Processor, fromTest bool) ([]byte, er
buf.WriteString("\n")
}

// todo why isn't this in Enums??
for _, info := range processor.Schema.GetGlobalEnums() {
if info.GQLEnum == nil {
continue
}
buf.WriteString(info.GQLEnum.Name)
buf.WriteString("\n")
}

for _, ci := range processor.Schema.CustomInterfaces {
buf.WriteString(ci.GQLName)
buf.WriteString("\n")
Expand Down

0 comments on commit 7f8f7a8

Please sign in to comment.