lvbreda / Meteor_angularjs

279 stars 42 forks source link

How to get a single document as opposed to collection #8

Open ghost opened 11 years ago

ghost commented 11 years ago

Hi all,

I am not able to access any collections without using ng-repeat. I would love to load just one user and read their information without having to use ng-repeat. Is there a way to do this right now in this package?

xiphias commented 11 years ago

You can try findOne instead of find to get an object instead of an array.

fatuhoku commented 11 years ago

I agree with @xiphias. findOne will do the job. I think we should close this issue.