Javascript – How to retrieve specific fields using mongoose when using Model.find() function in NodeJS
I am trying to retrieve specific fields from a database named "fruitDB", and the table that I'm trying to retrieve is from the "fruits" table. As of right now I am able to retrieve all the fields of the documents…