Skip to content

Commit

Permalink
fix: generation of enum types
Browse files Browse the repository at this point in the history
  • Loading branch information
rintoj committed Jul 4, 2024
1 parent dd8f413 commit f962633
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generator/hook/graphql-document-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function resolveTypeName(
) {
const type = gql.getNamedType(schemaType)
if (!type) return 'never'
if (gql.isEnumType(schemaType)) return type.name
if (gql.isEnumType(type)) return type.name
if (gql.isScalarType(type)) return toJSType(type)
if (gql.isObjectType(type)) {
return context.toInterfaceName(getFieldHash(type.name, node), type.name, getFieldName(node))
Expand Down

0 comments on commit f962633

Please sign in to comment.