1- var graphQlLib = require ( '/lib/graphql' ) ;
1+ var graphQlLib = require ( '/lib/officeleague/ graphql' ) ;
22var graphQlConnectionLib = require ( '/lib/graphql-connection' ) ;
33var graphQlEnumsLib = require ( './graphql-enums' ) ;
44var graphQlUtilLib = require ( './graphql-util' ) ;
@@ -165,7 +165,7 @@ exports.playerType = graphQlLib.createObjectType({
165165 }
166166} ) ;
167167
168- exports . playerConnectionType = graphQlConnectionLib . createConnectionType ( exports . playerType ) ;
168+ exports . playerConnectionType = graphQlConnectionLib . createConnectionType ( graphQlLib . getSchemaGenerator ( ) , exports . playerType ) ;
169169
170170exports . teamStatsType = graphQlLib . createObjectType ( {
171171 name : 'TeamStats' ,
@@ -251,7 +251,7 @@ exports.teamType = graphQlLib.createObjectType({
251251 }
252252 }
253253} ) ;
254- exports . teamConnectionType = graphQlConnectionLib . createConnectionType ( exports . teamType ) ;
254+ exports . teamConnectionType = graphQlConnectionLib . createConnectionType ( graphQlLib . getSchemaGenerator ( ) , exports . teamType ) ;
255255
256256exports . gamePlayerType = graphQlLib . createObjectType ( {
257257 name : 'GamePlayer' ,
@@ -470,7 +470,7 @@ exports.gameType = graphQlLib.createObjectType({
470470 }
471471 }
472472} ) ;
473- exports . gameConnectionType = graphQlConnectionLib . createConnectionType ( exports . gameType ) ;
473+ exports . gameConnectionType = graphQlConnectionLib . createConnectionType ( graphQlLib . getSchemaGenerator ( ) , exports . gameType ) ;
474474
475475exports . leaguePlayerType = graphQlLib . createObjectType ( {
476476 name : 'LeaguePlayer' ,
@@ -536,7 +536,7 @@ exports.leaguePlayerType = graphQlLib.createObjectType({
536536 }
537537 }
538538} ) ;
539- exports . leaguePlayerConnectionType = graphQlConnectionLib . createConnectionType ( exports . leaguePlayerType ) ;
539+ exports . leaguePlayerConnectionType = graphQlConnectionLib . createConnectionType ( graphQlLib . getSchemaGenerator ( ) , exports . leaguePlayerType ) ;
540540
541541exports . leagueTeamType = graphQlLib . createObjectType ( {
542542 name : 'LeagueTeam' ,
@@ -576,7 +576,7 @@ exports.leagueTeamType = graphQlLib.createObjectType({
576576 }
577577 }
578578} ) ;
579- exports . leagueTeamConnectionType = graphQlConnectionLib . createConnectionType ( exports . leagueTeamType ) ;
579+ exports . leagueTeamConnectionType = graphQlConnectionLib . createConnectionType ( graphQlLib . getSchemaGenerator ( ) , exports . leagueTeamType ) ;
580580
581581exports . leagueStatsType = graphQlLib . createObjectType ( {
582582 name : 'LeagueStats' ,
@@ -808,4 +808,4 @@ var getCurrentPlayerId = function () {
808808
809809var isAdmin = function ( ) {
810810 return authLib . hasRole ( 'system.admin' ) ;
811- } ;
811+ } ;
0 commit comments