Meteor_angularjs icon indicating copy to clipboard operation
Meteor_angularjs copied to clipboard

How to get a single document as opposed to collection

Open ghost opened this issue 13 years ago • 2 comments

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?

ghost avatar Oct 25 '12 10:10 ghost

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

xiphias avatar Dec 14 '12 01:12 xiphias

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

hokster7 avatar Feb 25 '13 10:02 hokster7