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

Cursor option to pre-process results #161

Closed
paha77 opened this issue Apr 1, 2015 · 1 comment
Closed

Cursor option to pre-process results #161

paha77 opened this issue Apr 1, 2015 · 1 comment

Comments

@paha77
Copy link

paha77 commented Apr 1, 2015

Hi,

Is there a way to say to pass a function to the #find method to "pre-process" returned documents?

I'd need to convert the result documents to my own Javascript object instead of having them as a standard Object created fron JSON.

Thank you.

@vkarpov15
Copy link
Contributor

Not at the moment. You can always create your own wrapper around find(). Or use mongoose :) mongoskin is meant to be more lightweight and so this feature might be overkill.

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