Skip to content

Commit b20d363

Browse files
committed
change field name
1 parent 85191e6 commit b20d363

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

packages/graphql-docs-generator/src/generator/getFields.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,20 +73,20 @@ function adjustDepth(field, depth) {
7373
return depth - 1;
7474
}
7575

76-
function isGraphQLAggregateField(type) {
76+
function isGraphQLAggregateField(field) {
7777
if (
78-
type &&
79-
type.name == 'aggregateItems' &&
80-
getBaseType(type.type) == 'SearchableAggregateResult'
78+
field &&
79+
field.name == 'aggregateItems' &&
80+
getBaseType(field.type) == 'SearchableAggregateResult'
8181
) {
8282
return true;
8383
}
8484
return false;
8585
}
8686

87-
function getBaseType(field) {
88-
if(field && field.ofType) {
89-
return getBaseType(field.ofType);
87+
function getBaseType(type) {
88+
if(type && type.ofType) {
89+
return getBaseType(type.ofType);
9090
}
91-
return field?.name;
91+
return type?.name;
9292
}

0 commit comments

Comments
 (0)