Referencing an object id from another collection
I am building a MERN stack employee management system application. I have created two schemas(one for adding departments and the other for adding employees) I have created and want them to reference each other. These are what I’ve done so far: