Is it possible with mongoose use a different name, in my case uppercase ‘ID’, as an alias for the schema _id field?
Would I need to add a virtual or is there another way of setting this up?
Any help gratefully received thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You would use a virtual attribute for that. As in: