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

Allow $collection to bind single documents (findOne) instead of arrays #4

Closed
hyperborea opened this issue Sep 7, 2014 · 4 comments
Closed

Comments

@hyperborea
Copy link

I've got an edit form where I'd like to bind a single document to the scope, but $collection.bind() currently always binds an array. Any chance you could add an argument to optionally call findOne() instead of find()? Or how are you handling this yourself currently?

@Urigo
Copy link
Owner

Urigo commented Sep 8, 2014

@hyperborea That is a great idea, it's funny, i've created a similar issue on the old repo.
Yes, it is definitely a good idea and also not so hard to implement.
Would you be interested in pull request the repo and get the credit?
If not, we will probably get to it soon

@seiyria
Copy link

seiyria commented Sep 20, 2014

Any word on this? I'm sure the implementation could be pulled from superchris' repo.

@hyperborea
Copy link
Author

Just created a pull request, that should hopefully do it.

@Urigo
Copy link
Owner

Urigo commented Sep 20, 2014

@hyperborea thank you so much!
I'll release a new version tomorrow

@Urigo Urigo closed this as completed Sep 20, 2014
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

3 participants