Skip to content

Replace _id to id #596

Answered by smolinari
edw19 asked this question in Q&A
Aug 26, 2021 · 2 comments · 8 replies
Discussion options

You must be logged in to vote

@edw19 - What am I looking at as the result above? The id field is a virtual. It won't be in the database. It's a virtual of _id.

https://mongoosejs.com/docs/guide.html#id

Scott

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
1 reply
@edw19
Comment options

Comment options

You must be logged in to vote
7 replies
@hasezoey
Comment options

@edw19
Comment options

@smolinari
Comment options

@igortas
Comment options

@smolinari
Comment options

Answer selected by edw19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants