Q. Which method creates an index?

A
createIndex()
B
makeIndex()
C
buildIndex()
D
setIndex()
Solution:

createIndex() creates an index on a field in MongoDB.

Entri PDF Icon

Get Question Bank

Strengthen Your Practice with our comprehensive question bank.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!