sql >> Base de Datos >  >> NoSQL >> MongoDB

¿Cómo poblar en este caso Mongoose?

Prueba:

  notifications: {
    notifiId: {type: Schema.Types.ObjectId, ref: 'Notifications' },
    viewed: { type: Number, default: 0 }
  },

y para encontrarlo:

model_Variable.findById(req.params.id).populate("notifiId").exec(function (err, 
callBack) {});