@@ -273,7 +273,7 @@ export function extendSchema(
273273 name : type . name ,
274274 description : type . description ,
275275 fields : ( ) => extendFieldMap ( type ) ,
276- resolveType : throwClientSchemaExecutionError ,
276+ resolveType : cannotExecuteClientSchema ,
277277 } ) ;
278278 }
279279
@@ -282,7 +282,7 @@ export function extendSchema(
282282 name : type . name ,
283283 description : type . description ,
284284 types : type . getPossibleTypes ( ) . map ( getTypeFromDef ) ,
285- resolveType : throwClientSchemaExecutionError ,
285+ resolveType : cannotExecuteClientSchema ,
286286 } ) ;
287287 }
288288
@@ -322,7 +322,7 @@ export function extendSchema(
322322 deprecationReason : field . deprecationReason ,
323323 type : extendFieldType ( field . type ) ,
324324 args : keyMap ( field . args , arg => arg . name ) ,
325- resolve : throwClientSchemaExecutionError ,
325+ resolve : cannotExecuteClientSchema ,
326326 } ;
327327 } ) ;
328328
@@ -342,7 +342,7 @@ export function extendSchema(
342342 newFieldMap [ fieldName ] = {
343343 type : buildFieldType ( field . type ) ,
344344 args : buildInputValues ( field . arguments ) ,
345- resolve : throwClientSchemaExecutionError ,
345+ resolve : cannotExecuteClientSchema ,
346346 } ;
347347 } ) ;
348348 } ) ;
@@ -384,15 +384,15 @@ export function extendSchema(
384384 return new GraphQLInterfaceType ( {
385385 name : typeAST . name . value ,
386386 fields : ( ) => buildFieldMap ( typeAST ) ,
387- resolveType : throwClientSchemaExecutionError ,
387+ resolveType : cannotExecuteClientSchema ,
388388 } ) ;
389389 }
390390
391391 function buildUnionType ( typeAST : UnionTypeDefinition ) {
392392 return new GraphQLUnionType ( {
393393 name : typeAST . name . value ,
394394 types : typeAST . types . map ( getTypeFromAST ) ,
395- resolveType : throwClientSchemaExecutionError ,
395+ resolveType : cannotExecuteClientSchema ,
396396 } ) ;
397397 }
398398
@@ -434,7 +434,7 @@ export function extendSchema(
434434 field => ( {
435435 type : buildFieldType ( field . type ) ,
436436 args : buildInputValues ( field . arguments ) ,
437- resolve : throwClientSchemaExecutionError ,
437+ resolve : cannotExecuteClientSchema ,
438438 } )
439439 ) ;
440440 }
@@ -464,6 +464,6 @@ export function extendSchema(
464464 }
465465}
466466
467- function throwClientSchemaExecutionError ( ) {
467+ function cannotExecuteClientSchema ( ) {
468468 throw new Error ( 'Client Schema cannot be used for execution.' ) ;
469469}
0 commit comments