0

Like in the Title is there any way to save my document in database where id would be "id", not "_id" ? I write server in Node.js with mongoose.

poldeeek
  • 313
  • 2
  • 16
  • You can check this answer [here](https://stackoverflow.com/questions/19971670/how-can-i-change-id-field-in-mongodb-collection-to-user-id) – Melinda Sep 21 '20 at 01:50
  • Does this answer your question? [How can i change \_id field in MongoDB Collection to User\_id?](https://stackoverflow.com/questions/19971670/how-can-i-change-id-field-in-mongodb-collection-to-user-id) – D. SM Sep 21 '20 at 02:24

0 Answers0