@@ -23,7 +23,9 @@ export function useDelegationPlanDebug<
2323 } ) {
2424 const planId = fetchAPI . crypto . randomUUID ( ) ;
2525 const planLogger = logger . child ( { planId, typeName } ) ;
26- const delegationPlanStartLogger = planLogger . child ( 'delegation-plan-start' ) ;
26+ const delegationPlanStartLogger = planLogger . child (
27+ 'delegation-plan-start' ,
28+ ) ;
2729 delegationPlanStartLogger . debug ( ( ) => {
2830 const logObj : Record < string , any > = { } ;
2931 if ( variables && Object . keys ( variables ) . length ) {
@@ -49,15 +51,17 @@ export function useDelegationPlanDebug<
4951 } ) ;
5052 return ( { delegationPlan } ) => {
5153 const delegationPlanDoneLogger = logger . child ( 'delegation-plan-done' ) ;
52- delegationPlanDoneLogger . debug ( ( ) => delegationPlan . map ( ( plan ) => {
53- const planObj : Record < string , string > = { } ;
54- for ( const [ subschema , selectionSet ] of plan ) {
55- if ( subschema . name ) {
56- planObj [ subschema . name ] = print ( selectionSet ) ;
54+ delegationPlanDoneLogger . debug ( ( ) =>
55+ delegationPlan . map ( ( plan ) => {
56+ const planObj : Record < string , string > = { } ;
57+ for ( const [ subschema , selectionSet ] of plan ) {
58+ if ( subschema . name ) {
59+ planObj [ subschema . name ] = print ( selectionSet ) ;
60+ }
5761 }
58- }
59- return planObj ;
60- } ) ) ;
62+ return planObj ;
63+ } ) ,
64+ ) ;
6165 } ;
6266 } ,
6367 onDelegationStageExecute ( {
0 commit comments