indexing in mongodb uses code example Example: mongodb index db.collection.createIndex( { name: -1 } )