Is there anyway to return count as a single value, not an object in an array?
When doing a join like so:
I then have to access the amount of comments as
I'd ideally like to just use
I then have to access the amount of comments as
listing?.comments[0]?.count. Same thing with the likes: listing?.likes[0]?.countI'd ideally like to just use
listing?.likes?.count or even better listing?.likes