Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ghost opened this issue Oct 25, 2012 · 2 comments
Open

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

ghost opened this issue Oct 25, 2012 · 2 comments

Comments

@ghost
Copy link

ghost commented Oct 25, 2012

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
Copy link

xiphias commented Dec 14, 2012

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

@fatuhoku
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants