DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
mongoose limit results
const results = await Model.find({}, '', { sort: { score: -1 }, limit: 10 })
PREVIOUS
NEXT
Tagged:
#mongoose
#limit
#results
ADD COMMENT
Topic
COMMENT
Name
5+5 =
Submit