@graphitation/supermassive 3.15.2 → 3.15.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintcache +1 -1
- package/CHANGELOG.md +10 -2
- package/lib/executeWithoutSchema.d.ts.map +1 -1
- package/lib/executeWithoutSchema.js +0 -41
- package/lib/executeWithoutSchema.js.map +2 -2
- package/lib/executeWithoutSchema.mjs +0 -41
- package/lib/executeWithoutSchema.mjs.map +2 -2
- package/package.json +1 -1
|
@@ -356,13 +356,6 @@ function executeField(exeContext, parentTypeName, source, fieldGroup, path, incr
|
|
|
356
356
|
fieldName
|
|
357
357
|
});
|
|
358
358
|
if (!loading) {
|
|
359
|
-
handleMissingSchemaError(
|
|
360
|
-
exeContext,
|
|
361
|
-
void 0,
|
|
362
|
-
fieldGroup,
|
|
363
|
-
path,
|
|
364
|
-
incrementalDataRecord
|
|
365
|
-
);
|
|
366
359
|
return void 0;
|
|
367
360
|
}
|
|
368
361
|
return loading.then(() => {
|
|
@@ -382,13 +375,6 @@ function executeField(exeContext, parentTypeName, source, fieldGroup, path, incr
|
|
|
382
375
|
incrementalDataRecord
|
|
383
376
|
);
|
|
384
377
|
}
|
|
385
|
-
handleMissingSchemaError(
|
|
386
|
-
exeContext,
|
|
387
|
-
void 0,
|
|
388
|
-
fieldGroup,
|
|
389
|
-
path,
|
|
390
|
-
incrementalDataRecord
|
|
391
|
-
);
|
|
392
378
|
return void 0;
|
|
393
379
|
});
|
|
394
380
|
}
|
|
@@ -670,24 +656,6 @@ function handleFieldError(rawError, exeContext, returnTypeRef, fieldGroup, path,
|
|
|
670
656
|
const errors = (_a = incrementalDataRecord == null ? void 0 : incrementalDataRecord.errors) != null ? _a : exeContext.errors;
|
|
671
657
|
errors.push(error);
|
|
672
658
|
}
|
|
673
|
-
function handleMissingSchemaError(exeContext, returnTypeRef, fieldGroup, path, incrementalDataRecord) {
|
|
674
|
-
const parentTypeName = path.typename;
|
|
675
|
-
const isRootField = parentTypeName === "Mutation" || parentTypeName === "Query";
|
|
676
|
-
if (!isRootField) {
|
|
677
|
-
return;
|
|
678
|
-
}
|
|
679
|
-
const fieldName = path.key;
|
|
680
|
-
const message = !returnTypeRef ? `Type definition for ${parentTypeName}.${fieldName} is missing` : `Resolver for ${parentTypeName}.${fieldName} is missing`;
|
|
681
|
-
const error = new Error(message);
|
|
682
|
-
handleFieldError(
|
|
683
|
-
error,
|
|
684
|
-
exeContext,
|
|
685
|
-
returnTypeRef,
|
|
686
|
-
fieldGroup,
|
|
687
|
-
path,
|
|
688
|
-
incrementalDataRecord
|
|
689
|
-
);
|
|
690
|
-
}
|
|
691
659
|
function resolveAndCompleteField(exeContext, parentTypeName, fieldDefinition, fieldGroup, path, source, incrementalDataRecord) {
|
|
692
660
|
var _a;
|
|
693
661
|
const fieldName = fieldGroup[0].name.value;
|
|
@@ -706,15 +674,6 @@ function resolveAndCompleteField(exeContext, parentTypeName, fieldDefinition, fi
|
|
|
706
674
|
path
|
|
707
675
|
);
|
|
708
676
|
const isDefaultResolverUsed = resolveFn === exeContext.fieldResolver || fieldName === "__typename";
|
|
709
|
-
if (resolveFn === exeContext.fieldResolver && typeof source === "undefined") {
|
|
710
|
-
handleMissingSchemaError(
|
|
711
|
-
exeContext,
|
|
712
|
-
returnTypeRef,
|
|
713
|
-
fieldGroup,
|
|
714
|
-
path,
|
|
715
|
-
incrementalDataRecord
|
|
716
|
-
);
|
|
717
|
-
}
|
|
718
677
|
const hooks = exeContext.fieldExecutionHooks;
|
|
719
678
|
let hookContext = void 0;
|
|
720
679
|
try {
|