Javascript – how can I find documents that aren't referenced by a document from another collection
I have two models called session and unreadcount. I need to get that particular session count from another table. below are my two Mongodb models. var UnreadCountSchema = new mongoose.Schema({ userId: { type: String, required: true }, sessionId: { type:…