@@ -87,11 +87,11 @@ if (helper.sequelize.dialect.name === 'postgres') {
8787 connectionFields : ( ) => ( {
8888 totalCount : {
8989 type : GraphQLInt ,
90- resolve : function ( connection , args , { rootValue } ) {
90+ resolve : function ( connection , args , { logging } ) {
9191 self . projectTaskConnectionFieldSpy ( connection ) ;
9292 return connection . source . countTasks ( {
9393 where : connection . where ,
94- logging : rootValue . logging
94+ logging : logging
9595 } ) ;
9696 }
9797 }
@@ -127,11 +127,11 @@ if (helper.sequelize.dialect.name === 'postgres') {
127127 connectionFields : ( ) => ( {
128128 totalCount : {
129129 type : GraphQLInt ,
130- resolve : function ( connection , args , { rootValue } ) {
130+ resolve : function ( connection , args , { logging } ) {
131131 self . userTaskConnectionFieldSpy ( connection ) ;
132132 return connection . source . countTasks ( {
133133 where : connection . where ,
134- logging : rootValue . logging
134+ logging : logging
135135 } ) ;
136136 }
137137 }
@@ -227,8 +227,8 @@ if (helper.sequelize.dialect.name === 'postgres') {
227227 } ,
228228 viewer : {
229229 type : this . viewerType ,
230- resolve : function ( source , args , info ) {
231- return info . rootValue . viewer ;
230+ resolve : function ( source , args , { viewer } ) {
231+ return viewer ;
232232 }
233233 } ,
234234 }
@@ -376,8 +376,8 @@ if (helper.sequelize.dialect.name === 'postgres') {
376376 } ,
377377 viewer : {
378378 type : this . viewerType ,
379- resolve : function ( source , args , info ) {
380- return info . rootValue . viewer ;
379+ resolve : function ( source , args , { viewer } ) {
380+ return viewer ;
381381 }
382382 }
383383 }
@@ -404,7 +404,7 @@ if (helper.sequelize.dialect.name === 'postgres') {
404404 }
405405 }
406406 }
407- ` , {
407+ ` , null , {
408408 logging : sqlSpy
409409 } ) ;
410410
@@ -460,7 +460,7 @@ if (helper.sequelize.dialect.name === 'postgres') {
460460 }
461461 }
462462 }
463- ` ) ;
463+ ` , null , { } ) ;
464464 } ;
465465
466466 let firstResult = await query ( ) ;
@@ -491,7 +491,7 @@ if (helper.sequelize.dialect.name === 'postgres') {
491491 }
492492 }
493493 }
494- ` ) ;
494+ ` , null , { } ) ;
495495
496496 if ( result . errors ) throw new Error ( result . errors [ 0 ] . stack ) ;
497497
@@ -518,7 +518,7 @@ if (helper.sequelize.dialect.name === 'postgres') {
518518 }
519519 }
520520 }
521- ` ) ;
521+ ` , null , { } ) ;
522522
523523 if ( result . errors ) throw new Error ( result . errors [ 0 ] . stack ) ;
524524 expect ( result . data . user . tasks . edges [ 0 ] . node . title ) . to . equal ( 'CAA' ) ;
@@ -571,7 +571,7 @@ if (helper.sequelize.dialect.name === 'postgres') {
571571 }
572572 }
573573 }
574- ` ) ;
574+ ` , null , { } ) ;
575575 } ;
576576
577577 let firstResult = await query ( ) ;
@@ -605,7 +605,7 @@ if (helper.sequelize.dialect.name === 'postgres') {
605605 }
606606 }
607607 }
608- ` ) ;
608+ ` , null , { } ) ;
609609
610610 let secondResult = await graphql ( this . schema , `
611611 {
@@ -624,7 +624,7 @@ if (helper.sequelize.dialect.name === 'postgres') {
624624 }
625625 }
626626 }
627- ` ) ;
627+ ` , null , { } ) ;
628628
629629 expect ( firstResult . data . user . tasks . edges [ 2 ] . node . name ) . to . equal ( 'ABC' ) ;
630630 expect ( firstResult . data . user . tasks . edges [ 2 ] . node . name ) . to . equal ( secondResult . data . user . tasks . edges [ 0 ] . node . name ) ;
@@ -654,7 +654,7 @@ if (helper.sequelize.dialect.name === 'postgres') {
654654 }
655655 }
656656 }
657- ` , {
657+ ` , null , {
658658 logging : sqlSpy
659659 } ) ;
660660
@@ -687,7 +687,7 @@ if (helper.sequelize.dialect.name === 'postgres') {
687687 }
688688 }
689689 }
690- ` , {
690+ ` , null , {
691691 logging : sqlSpy
692692 } ) ;
693693
@@ -717,7 +717,7 @@ if (helper.sequelize.dialect.name === 'postgres') {
717717 }
718718 }
719719 }
720- ` , {
720+ ` , null , {
721721 logging : sqlSpy
722722 } ) ;
723723
@@ -744,7 +744,7 @@ if (helper.sequelize.dialect.name === 'postgres') {
744744 }
745745 }
746746 }
747- ` , {
747+ ` , null , {
748748 logging : sqlSpy
749749 } ) ;
750750
@@ -775,7 +775,7 @@ if (helper.sequelize.dialect.name === 'postgres') {
775775 fragment projectOwner on userProjectEdge {
776776 isOwner
777777 }
778- ` , {
778+ ` , null , {
779779 logging : sqlSpy
780780 } ) ;
781781
@@ -796,7 +796,7 @@ if (helper.sequelize.dialect.name === 'postgres') {
796796 }
797797 }
798798 }
799- ` , {
799+ ` , null , {
800800 logging : sqlSpy
801801 } ) ;
802802
@@ -827,7 +827,7 @@ if (helper.sequelize.dialect.name === 'postgres') {
827827 }
828828 }
829829 }
830- ` , { } ) ;
830+ ` , null , { } ) ;
831831
832832 if ( result . errors ) throw new Error ( result . errors [ 0 ] . stack ) ;
833833 expect ( result . data . user ) . not . to . be . null ;
@@ -864,7 +864,7 @@ if (helper.sequelize.dialect.name === 'postgres') {
864864 }
865865 }
866866 }
867- ` , {
867+ ` , null , {
868868 viewer : viewer
869869 } ) ;
870870
0 commit comments