File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
packages/graphql-docs-generator/src/generator Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -73,20 +73,20 @@ function adjustDepth(field, depth) {
73
73
return depth - 1 ;
74
74
}
75
75
76
- function isGraphQLAggregateField ( type ) {
76
+ function isGraphQLAggregateField ( field ) {
77
77
if (
78
- type &&
79
- type . name == 'aggregateItems' &&
80
- getBaseType ( type . type ) == 'SearchableAggregateResult'
78
+ field &&
79
+ field . name == 'aggregateItems' &&
80
+ getBaseType ( field . type ) == 'SearchableAggregateResult'
81
81
) {
82
82
return true ;
83
83
}
84
84
return false ;
85
85
}
86
86
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 ) ;
90
90
}
91
- return field ?. name ;
91
+ return type ?. name ;
92
92
}
You can’t perform that action at this time.
0 commit comments