Loading...
Mongoose populate() returns null after I renamed a schema field
asked 2 days ago
0
3
After renaming the ref field, populate() silently returns null instead of throwing. The ObjectId is still stored correctly, but the virtual never resolves. Do I need to backfill the documents, or is there a way to alias the old field name during the transition?
0 Answers


No Answers Found
The answer board is empty. Make it rain with your brilliant answer.