-
Notifications
You must be signed in to change notification settings - Fork 96
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
Change _Id to id #325
Comments
An |
Oh, I got with, I thought that the "id" was for specifying the "_id" alias. My bad. Thanks for the answer @daffl. Do you have any idea of how I should do It then? I just need an alias for the _id property because I'm migrating my project from feathers-knex to feathers-mongoose and my frontend already uses the property "id". I've tried putting a Mongoose alias in the schema, but It didn't work either. edit: I solved my issue, thanks again for the answer, I love Feathers <3 |
Steps to reproduce
Expected behavior
Service should use the _id property as "id" when querying and creating new elements.
Actual behavior
But It doesn't work, the service keeps creating documents with "_id" property and having the id as "_id" when querying. Am I doing something wrong?
System configuration
Module versions
"@feathersjs/feathers": "version": "3.3.1"
"feathers-mongoose": "version": "7.3.2",
"mongoose": "version": "5.5.12"
NodeJS version:
v10.12.0
The text was updated successfully, but these errors were encountered: