您應該聲明相應的Answer和QuestionSchema,并引用以下內容: const answerSchema = new mongoose.Schema({ text: String, isCorrect: Boolean,});const questionSchema = new mongoose.Schema({ text: String, answers: [answerSchema],});const examSchema = new mongoose.Schema({ title: String, questions: [questionSchema],})const AnswerModel = mongoose.model("Answer", examSchema);const QuestionModel = mongoose.model("Question", examSchema);const ExamModel = mongoose.model("Exam", examSchema);...const solvedExamSchema = new mongoose.Schema({ exam: { type: mongoose.Schema.Types.ObjectId, ref: "Exam", } answers: [{ question: { type