Mongoose membuat array diperlukan

const ToyBoxSchema = new Schema({
  toys: {
    type: [ToySchema],
    default: undefined
    required: true,
  }
});
Crowded Crocodile