public RootMutation(IPlayerRepository playerRepository) { Field <PlayerType>( "addPlayer", arguments: new QueryArguments { new QueryArgument <InputPlayerType>() { Name = "player" } }, resolve: context => { var player = context.GetArgument <Player>("player"); return(playerRepository.AddPalyer(player)); } ); }