I\'ve seen many examples about mongoose and relations, but how can I create a reference to another entity into a custom field ?
var mongoose = require(\'mongoose
This is supported since Mongoose 4.5, and is called virtuals population.
Check my detailed answer on this (nearly duplicate) question.