mongodb - mongoose 怎麼多個model查詢
欧阳克
欧阳克 2017-06-20 10:05:55
0
4
950

比如

aModel = {
    user_id: String,
    file_name: String,
    page_id: Number
}
fileSchema = new Schema({
    page_id: Number,
    key: String,
    doc: String,
    title: String,
    sym: String
});

bModel = {
    user_id: String,
    file_name: String,
    origin_file: String,
    new_file: [fileSchema]
}

已知user_id,file_name,page_id,model是異步的,怎麼同時找這兩個model,
得到兩個結果後再進行下一步

欧阳克
欧阳克

温故而知新,可以为师矣。 博客:www.ouyangke.com

熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!