File tree 1 file changed +7
-6
lines changed
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -40,9 +40,10 @@ export interface IntrospectionOptions {
40
40
oneOf ?: boolean ;
41
41
42
42
/**
43
- * How deep to recurse into nested types. Larger values will result in more
44
- * accurate results, but have a higher load. Some servers might restrict the
45
- * maximum query depth. If thats the case, try decreasing this value.
43
+ * How deep to recurse into nested types, larger values will result in more
44
+ * accurate results, but have a higher load on the server.
45
+ * Some servers might restrict the maximum query depth or complexity.
46
+ * If that's the case, try decreasing this value.
46
47
*
47
48
* Default: 9
48
49
*/
@@ -85,12 +86,12 @@ export function getIntrospectionQuery(options?: IntrospectionOptions): string {
85
86
return '' ;
86
87
}
87
88
if ( level > 100 ) {
88
- throw new Error ( " Please set typeDepth to a reasonable value; the default is 9." ) ;
89
+ throw new Error ( ' Please set typeDepth to a reasonable value; the default is 9.' ) ;
89
90
}
90
91
return `
91
92
${ indent } ofType {
92
93
${ indent } name
93
- ${ indent } kind${ ofType ( level - 1 , indent + " " ) }
94
+ ${ indent } kind${ ofType ( level - 1 , indent + ' ' ) }
94
95
${ indent } }`;
95
96
}
96
97
@@ -162,7 +163,7 @@ ${indent}}`;
162
163
163
164
fragment TypeRef on __Type {
164
165
kind
165
- name${ ofType ( optionsWithDefault . typeDepth ?? 9 , " " ) }
166
+ name${ ofType ( optionsWithDefault . typeDepth ?? 9 , ' ' ) }
166
167
}
167
168
` ;
168
169
}
You can’t perform that action at this time.
0 commit comments