Search code examples
getstream-io

how to count Like and comment in getstream


I am trying to create like/comment feature for feed in my app. Does getstream provide any api/method to find total number of comment/like on a post? Or do we have to save this info in our database and have to send only notification to getstream server?

If possible, any example

Thanks


Solution

  • Currently like/comments (i.e. related activities) are not supported natively on the Getstream.io API. Thus you would have to store this information locally in your own database (as you pointed out). A feature which would allow native support for this is on the roadmap. If it fits your specific usecase you could also use the aggregated feed format to aggregate on post id and verb to get the amount of likes on a certain post.