We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2e4439 commit 91d1f86Copy full SHA for 91d1f86
1 file changed
src/QueryComplexity.ts
@@ -341,12 +341,13 @@ export default class QueryComplexity {
341
return false;
342
});
343
if (!validScore) {
344
- return this.context.reportError(
+ this.context.reportError(
345
new GraphQLError(
346
`No complexity could be calculated for field ${typeDef.name}.${field.name}. ` +
347
'At least one complexity estimator has to return a complexity score.'
348
)
349
);
350
+ return complexities;
351
}
352
break;
353
0 commit comments