dataProcessor = $dataProcessor; $this->countryInformationAcquirer = $countryInformationAcquirer; } /** * @inheritdoc */ public function resolve( Field $field, $context, ResolveInfo $info, array $value = null, array $args = null ) { try { $country = $this->countryInformationAcquirer->getCountryInfo($args['id']); } catch (NoSuchEntityException $exception) { throw new GraphQlNoSuchEntityException(__($exception->getMessage()), $exception); } return $this->dataProcessor->buildOutputDataArray( $country, CountryInformationInterface::class ); } }