

InterviewSolution
Saved Bookmarks
1. |
You cannot use _________ to change the value of expireAfterSeconds of an existing index.(a) createIndex()(b) dropIndex()(c) removeIndex()(d) none of the mentioned |
Answer» The correct option is (a) createIndex() For explanation: Instead use the collMod database command in conjunction with the index collection flag. Otherwise, to change the value of the option of an existing index, you must drop the index first and recreate. |
|