thedevstockgirlT
Convex Community2y ago
29 replies
thedevstockgirl

Looking up by an array equality

QQ: Will this code do what I think it will? Basically trying to model a group chat. And want to check if there is an existing thread with a user, when a user initiates a new conversation. For example, say from a providers profile, a user clicks the message icon, instead of creating a chat, I want to check if there is an existing thread. We model the thread association with threadParticipants. Just looking for some feedback or if there is a better approach.
code-screenshot.png
Was this page helpful?