Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

In mongoose, how to select a specific field with find?

I'm trying to select only a specific field with Mongoose. How can I achieve this?

user-image
Question ajoutée par Hamed Mehryar , Software Engineer , Netlinks
Date de publication: 2018/09/25

The precise way to do this is it to use .project() cursor method with the new mongodb and nodejs driver.

More Questions Like This

Avez-vous besoin d'aide pour créer un CV ayant les mots-clés recherchés par les employeurs?