-
Notifications
You must be signed in to change notification settings - Fork 4
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
Default conversion _id to id #21
Comments
Hmm.
I think in the end, this might violate the Principle of Least Astonishment. It's simple enough to do new Container({
mapperDefaults: {
idAttribute: '_id'
}
}) I might be okay with adding an option that translates This also raises the question of whether JSData's |
Understood. I'll put together a PR that at least makes it an option to convert in the adapter - leaving the default behavior as-is. |
No shit?!
@jmdobry How do you feel about making default functionality to convert
id
to_id
and vica versa with adapter interactions?We can still have the config
idAttribute
property to be specified for override.The text was updated successfully, but these errors were encountered: