Are multiple like counts within a post possible?

I am building something that will include posts which contain 2 images. I want the ability for 1 image or the other to be liked and for their to be a unique count for each image. Does anyone know if this is possible?


Yes, this is definitely possible. If you have a collection of “Posts” and a collection of “Post Images” with a relationship to each other, each image can be its own record in the “Post Images” collection. Since each image would be its own record, you can have a field for like counts or likes by users (with a relationship between your “Users” and “Post Images” collections), which could be totaled to give you a like count…really you can slice it up anyway you want once you separate each image to be its own record. The downside is that your record count in the “Post Images” collection can fill up quickly.