'Drupal 8 TWIG: Retrieve the value of the ID in another content type

We have trying to get value from question content type to answer content type, what we could able to get the ID of the Question content type using the below mentioned codes.

<ul>
      {% for item in node.field_results %}
          <li class="id2">{{ item.entity.field_paragraph_id.value|raw }}</li>
          <li class="id3">{{ item.entity.field_answer_given.value|raw }}</li>
          <li class="id4">{{ item.entity.field_correct.value|raw }}</li>
      {% endfor %}

</ul>

Could someone support in getting content of the ID?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source