public function assetTypeHasField(AbstractType $objectType, AstFieldInterface $ast)
{
/** @var AbstractObjectType $objectType */
if (!(TypeService::isObjectType($objectType) || TypeService::isInputObjectType($objectType)) || !$objectType->hasField($ast->getName())) {
throw new ResolveException(sprintf('Field "%s" not found in type "%s"', $ast->getName(), $objectType->getNamedType()->getName()), $ast->getLocation());
}
}