我需要在 Telescope 中显示_id所有内容。post_item集合中的不是posts_itens,而是显示的那些。
使用谷歌翻译。
我需要在 Telescope 中显示_id所有内容。post_item集合中的不是posts_itens,而是显示的那些。
使用谷歌翻译。
cursor.map()如果您尝试获取具有元素_id值的数组,则可以使用:post_item
var postIdsArr = Posts.find({}, {
_id: 1
}).map(function(post) {
return post._id;
});
阅读有关cursor.map() 方法的更多信息。