public MagicCardsQuery(CardsRepository cardRepository) { Field <ListGraphType <CardType> >( "cards", resolve: context => cardRepository.GetAll() ); }