0
數組這是什麼聊天模式看起來像貓鼬搜索收藏。它具有Array用戶屬性,以小型用戶文檔爲元素。由一個屬性,是文檔
chat: {
users: [
{username: "user1", user_id: "1x323x23f23f2cg23", muted: false},
{username: "user2", user_id: "sdijowd98c23o8h2cg23", muted: false},
],
otherAttributes: undefined
}
我想通過聊天蒙戈集合搜索拉每次談話,一個用戶在,這是什麼,我試圖做的要點..
Chat.find(users.username.include('user1')), function (err, chats) {
// work with 'chats' that 'user1' is a part of
}
你看過人口嗎? – srquinn