private function mergeResolveConfig(SchemaContainer $schemaContainer, Field $field)
    {
        $typeName = TypeParser::getFinalType($field->getType());

        if ($schemaContainer->hasType($typeName)) {
            $typeConfig = $schemaContainer
                ->getType($typeName)
                ->getResolveConfig();
        } elseif ($schemaContainer->hasInterface($typeName)) {
            $typeConfig = $schemaContainer
                ->getInterface($typeName)
                ->getResolveConfig();
        } else {
            return;
        }

        $field->mergeResolveConfig($typeConfig);
    }