Javascript – How to Get Data from another collection in mongodb?
For example, my teacher collection documents look like: { _id: new ObjectId("64fee9b54273ac223441225"), teacherid: '64f1d72a4331bc8fc4c5930f', name: 'Jackly' } and the users collection documents look like: { _id: new ObjectId("64f1d72a4331bc8fc4c5930f"), name: 'Mark' } How can I get the name from users collection…