Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

create index with multiple fields mongo

db.events.find().sort( { username: 1, date: -1 } )
Source by www.mongodb.com #
 
PREVIOUS NEXT
Tagged: #create #index #multiple #fields #mongo
ADD COMMENT
Topic
Name
1+9 =