I need help with this specific query:
MessageModel.find({ conversationId: { $in: ids } })
.sort({createdAt: 'ascending'})
.populate({ path: 'receiver', select: '_id' })
.populate({ path: 'sender', select: '_id' });
Will both 'receiver' and 'sender' fields have the same _id value? I am interested in changing _id to receiverId and senderId respectively. Can you guide me on how to achieve this?