Create an array from data of 2 Mongoose schemas and send it as API response

前端 未结 0 689
有刺的猬
有刺的猬 2020-12-04 04:23

I want to make a custom response, that has data from 2 different sources:

exports.List = (req, res) => {
    let responseTable = [];

    User.find().exec(         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题