Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mongoose findbyidandupdate return updated

await Model.findByIdAndUpdate(
			id,
			{updatedData},
			{ new: true },
		)
 
PREVIOUS NEXT
Tagged: #mongoose #findbyidandupdate #return #updated
ADD COMMENT
Topic
Name
6+8 =