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

Add MongoDB Support #10

Open
tracend opened this issue Nov 22, 2012 · 2 comments
Open

Add MongoDB Support #10

tracend opened this issue Nov 22, 2012 · 2 comments
Labels

Comments

@tracend
Copy link
Member

tracend commented Nov 22, 2012

As known a MongoDB will return results with "_id" instead of "id"

Would be nice to create a Model and Collection that would extend the default with a custom parse method that would "normalize" the results with proper ids...

@tracend
Copy link
Member Author

tracend commented Nov 22, 2012

It is assumed that the reverse operation (restoring the _id attribute) can either be done with a custom sync method or on the server side before the query.

This is left for the application developer to decide. (currently not implementing)

@tracend
Copy link
Member Author

tracend commented Mar 6, 2013

This solution needs to be revised as separate Model/Collection generators is not viable, especially in contradiction to other extensions/plugins.

The _id that seems to be the core of the problem here should be "sniffed" during parse() and a flag in options should be set declaring the data as mongo, for subsequent requests - save() etc.

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

No branches or pull requests

1 participant