阅读背景:

构建查询以在sails js中获取聊天对话消息

来源:互联网 

Lets say i have the following model schema described as below to add some chat functionality between 2 users in my sails app. For instance if i have user A sending a message to user B, then user B will reply back to user A which will always create 2 conversations between both users. So my question is how can i query both conversations to get messages from A and B. I tried something like this but maybe theres a simple logic.Lets say i have the following model schema desc




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: