Lỗi bạn gặp phải là do nhúng Adventure mô hình thay vì lược đồ. Bạn cần thêm Adventure lược đồ trong định nghĩa lược đồ đích Adventure thuộc tính lược đồ của mô hình:
// this is the "destination" model for mongoose
var mongoose = require('mongoose');
var AdventureSchema = require('../models/adventure').schema; /* <- access the schema via its Model.schema property */
var tripSchema = mongoose.Schema({
name: { type: String, required: true },
city: { type: String, required: true },
dateStart: { type: Date, required: true },
dateFinish: { type: Date, required: true },
adventures: [AdventureSchema]
});