[DOCS-7176] Comment on: "manual/reference/method/db.collection.ensureIndex.txt" Created: 16/Feb/16  Updated: 03/Nov/17  Resolved: 05/Oct/16

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: 01112017-cleanup

Type: Bug Priority: Major - P3
Reporter: Docs Collector User (Inactive) Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Location: https://docs.mongodb.org/manual/reference/method/db.collection.ensureIndex/
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit/600.7.12 (KHTML, like Gecko) Version/8.0.7 Safari/600.7.12
Referrer: https://www.google.com/
Screen Resolution: 1280 x 800
repo: docs
source: reference/method/db.collection.ensureIndex


Participants:
Days since reply: 7 years, 19 weeks, 1 day ago

 Description   

An example of usage is needed.



 Comments   
Comment by Ravind Kumar (Inactive) [ 05/Oct/16 ]

ensureIndex is deprecated. Please use db.collection.createIndex instead.

You can find examples for {{db.collection.createIndex] here

Generated at Thu Feb 08 07:53:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.