【发布时间】:2012-05-10 14:10:48
【问题描述】:
如果我以正常方式查询集合中的所有文档,我没有问题:https://gist.github.com/2562954。这个的输出是
found docs []
但是,如果我引入 Step (https://github.com/creationix/step),那么输出的不是文档数组:https://gist.github.com/2562852。这个的输出是:
found docs { options: { populate: {} },
safe: undefined,
_conditions: {},
op: 'find',
model: [Function: Model] }
这到底是怎么回事?我真的很想在 mongoose 中使用控制流库,但这让我抓狂!
【问题讨论】:
标签: node.js mongoose control-flow