Skip to content

Commit 2241ec5

Browse files
committed
fix: list type detection
1 parent a4a8bfe commit 2241ec5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/helpers/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ export function mapDependencyData(
110110
const from = Object.keys(option.filter).map(dst => (
111111
{ dst, src: option.filter[dst].name }
112112
));
113-
const isList = option.as.type instanceof GraphQLList;
113+
const isList = option.as.type instanceof GraphQLList ||
114+
option.as.type.constructor.name === 'GraphQLList';
114115

115116
for (const item of src) {
116117
if (isList) {

0 commit comments

Comments
 (0)