Mongodb – $unset operator turns a simple object into array
I have a Project entity (projects collection). Each Project belongs to an organization represented by Project.orgId and has an author Project.author taken from users collection. I want to query the projects that belong to an organization using Mongoose, and here's…