String queryStr = "db.collection('users').aggregate([{$lookup: {from: 'menu',localField:'menu_id',foreignField:'menu_id', as: 'menu'}},{$match: {$and: [{username: '"+ userModel.getUsername() +"', institution: '"+ userModel.getInstitution() +"', password: '"+ userModel.getPasswords() +"'}]}}])";

String queryStr = dbcollectionusersaggregatelookupfrom menulocalFieldmenu_idforeignFieldmenu_id as menumatch$and username$eq+ userModelgetUsername + institution$eq + userModelgetInstitution + password

原文地址: https://www.cveoy.top/t/topic/iJQk 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录