Skip to content

Commit 297c3eb

Browse files
committed
refactor: get only user-defined union types
1 parent 4464a01 commit 297c3eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/schema-scanner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export function getTypeInfos(config: Config, schema: GraphQLSchema): TypeInfo[]
126126
.filter((type) => isObjectType(type) || isInputObjectType(type) || isInterfaceType(type) || isUnionType(type));
127127

128128
const objectTypes = userDefinedTypes.filter(isObjectType);
129-
const unionTypes = types.filter(isUnionType);
129+
const unionTypes = userDefinedTypes.filter(isUnionType);
130130
function getAbstractTypeNames(type: GraphQLObjectType): string[] {
131131
const interfaceNames = type.getInterfaces().map((i) => i.name);
132132
const unionNames = unionTypes

0 commit comments

Comments
 (0)