Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mongoose find get nested prop only

ListModel.findOne({
	"_id" : "57e6bcab6b383120f0395aed", 'recipients.status' : 1
  },
  {
  	_id:1, name: 1, subject:1,'recipients.$': 1
   },
   function(err,list) {...}
);
 
PREVIOUS NEXT
Tagged: #mongoose #find #nested #prop
ADD COMMENT
Topic
Name
6+8 =