Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mongoose return only a certain number of results

const foundResults = await MySchema.find().limit(3);
 
PREVIOUS NEXT
Tagged: #mongoose #return #number #results
ADD COMMENT
Topic
Name
5+9 =