@@ -155,7 +155,9 @@ class GraphQLResolvePlugin extends TracingPlugin {
155155
156156 fieldDef . resolve = function ( source , args , contextValue , resolveInfo ) {
157157 fieldDef . resolve = originalResolve
158- iastResolveCh . publish ( { rootCtx : capturedRootCtx , args, info : capturedInfo , path : capturedPath , pathString : capturedPathString } )
158+ iastResolveCh . publish ( {
159+ rootCtx : capturedRootCtx , args, info : capturedInfo , path : capturedPath , pathString : capturedPathString ,
160+ } )
159161 return originalResolve . call ( this , source , args , contextValue , resolveInfo )
160162 }
161163 }
@@ -250,7 +252,7 @@ function getFieldDef (schema, parentType, fieldNode) {
250252 const fieldName = fieldNode . name . value
251253
252254 if ( fieldName === '__schema' || fieldName === '__type' || fieldName === '__typename' ) {
253- return undefined
255+ return
254256 }
255257
256258 const fields = parentType . getFields ?. ( )
@@ -293,7 +295,7 @@ function withCollapse (responsePathAsArray) {
293295}
294296
295297function getResolverArgs ( fieldDef , fieldNode , variableValues ) {
296- if ( ! fieldNode . arguments || fieldNode . arguments . length === 0 ) return undefined
298+ if ( ! fieldNode . arguments || fieldNode . arguments . length === 0 ) return
297299
298300 const args = { }
299301 for ( const arg of fieldNode . arguments ) {
@@ -367,7 +369,6 @@ function getParentField (parentCtx, path, collapse) {
367369function getErrorsArray ( exeContext ) {
368370 if ( exeContext . errors ) return exeContext . errors
369371 if ( exeContext . collectedErrors ?. _errors ) return exeContext . collectedErrors . _errors
370- return undefined
371372}
372373
373374function getErrorCount ( exeContext ) {
0 commit comments