Reputation: 11
Leads and Customers are both collections. Why does Leads.findOne()
return an Object? It should return a Document as Customers.findOne()
does.
I am using Meteor 1.2.1.
Upvotes: 1
Views: 68
Reputation: 609
It's because collection Customers
has been transformed via the _transform
method whilst collection Leads
hasn't.
See the transform
parameter of Mongo.Collection
in the documentation.
It's very likely you are using the dburles:collection-helpers package which adds the transform
automatically.
Upvotes: 1