Skip to content

Commit 85191e6

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

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

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

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

0 commit comments

Comments
 (0)