DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
1+9 =
Submit