Skip to content

Add disableObjectify option to use normal strings as id#171

Merged
daffl merged 1 commit intofeathersjs:masterfrom
ydeshayes:fix-objectify
Nov 21, 2019
Merged

Add disableObjectify option to use normal strings as id#171
daffl merged 1 commit intofeathersjs:masterfrom
ydeshayes:fix-objectify

Conversation

@ydeshayes
Copy link
Copy Markdown
Contributor

@ydeshayes ydeshayes commented Nov 16, 2019

Hello,

Summary

This PR is an attempt to resolve feathersjs/feathers#1660.

The problem is that the objectify of _id need to be done in the adapter IMHO because without that it break a lot of things for MongoDB and the third party libs.

This add a disableObjectify option that can be use in the service that will disable the objectify of the id field. If user want to use strings which is not the normal MongoDB behavior, you can add this option.

Thanks

@daffl daffl merged commit b157074 into feathersjs:master Nov 21, 2019
@daffl
Copy link
Copy Markdown
Member

daffl commented Nov 21, 2019

I think that makes sense, thank you for the pull request @ydeshayes. Released as v6.1.0

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

Successfully merging this pull request may close these issues.

No record found for id... when requesting with JWT

2 participants