const fooSchema = new Schema({ _id: {type: mongoose.Types.ObjectId}, propA: String, propB: String, }) const barSchema = new Schema