【发布时间】:2016-03-08 10:44:42
【问题描述】:
【问题讨论】:
-
这取决于您的类型的定义,因为如果不发布一些代码就无法指定。
-
您是出于好奇而询问,还是类型差异导致了问题?
-
我所有的
findOne()s 返回对象。我不记得曾经看过Document。这就是网页本身的类型!
标签: javascript meteor collections
【问题讨论】:
findOne()s 返回对象。我不记得曾经看过Document。这就是网页本身的类型!
标签: javascript meteor collections
这是因为集合 Customers 已通过 _transform 方法转换,而集合 Leads 没有。
参见documentation中Mongo.Collection的transform参数。
您很可能正在使用dburles:collection-helpers 包,它会自动添加transform。
【讨论】: