# How to get total comments related to a reference ID?

**URL:** <https://forum.social.plus/t/how-to-get-total-comments-related-to-a-reference-id/150>\
**Category:** Web\
**Tags:** technical\
**Created:** [May 17, 2021, 3:30am UTC](https://forum.social.plus/t/how-to-get-total-comments-related-to-a-reference-id/150 "2021-05-17T03:30:10Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![jing](https://avatars.discourse-cdn.com/v4/letter/j/71e660/32.png) [@jing](https://forum.social.plus/u/jing)\
**Post date:** [May 19, 2021, 5:09am UTC](https://forum.social.plus/t/how-to-get-total-comments-related-to-a-reference-id/150/5 "2021-05-19T05:09:42Z")

</div>

Hello @Jenya ,

I did try your suggested solution. here is the result

step to reproduce ( on eko-sdk version 4.4.3 )

1. create a comment with an refID and referenceType content.
2. getting a post by the refID.
3. getting post is error and the model data is undefined

as show in the image below.

 ![Screen Shot 2564-05-19 at 12.04.09](https://europe1.discourse-cdn.com/flex013/uploads/amity/original/1X/d9fc5410e2581efa9e6e4f038f92966dd868f80d.png)

also tried with the referenceType `post` the result was the same as above.

---

_[View the full topic](https://forum.social.plus/t/how-to-get-total-comments-related-to-a-reference-id/150)._
