Campaign.find {client_id:req.param( client_id )}, (error, campaigns) ->
if error
response =
error: error.message
else
for campaign in campaigns
query =
campaign_id: campaign._id
console.log query
CampaignResponse.find query, (err, campaignResponsesCount) ->
console.log campaignResponsesCount
response = campaigns
res.json response
由于某种原因,这一回报no结果。 但是,<代码>CampaignResponse中有具体项目campaign._id
。 我确信,这是一个涉及类型和投放的问题,但我可以指出需要做些什么。
任何帮助?