Docs Menu

db.collection.ensureIndex()

db.collection.ensureIndex(keys, options)
Note
Removed in 5.0
Tip
←  db.collection.dropIndexes()db.collection.estimatedDocumentCount() →
Give Feedback
© 2022 MongoDB, Inc.

About

  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2022 MongoDB, Inc.