I'm looking for a way to populate to a alias/virtual property using mongoose ?
For now, mongoose's population is add more fields to the reference property (normally is the identity key). I want to keep my original property and populate the reference's data to the other property.
Ex: seem we need more options on schema
profile_id: { type: mongoose.Schema.Types.ObjectId, ref: 'profiles', populateTo: 'profile' }
And the result return should contain two property: profile_id
and profile
After searching time, I found this issue on github :( https://github.com/Automattic/mongoose/issues/3225