We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db138bc commit 376d012Copy full SHA for 376d012
source/reference/method/MongoDBDatabase-createCollection.txt
@@ -57,6 +57,20 @@ Parameters
57
- Type
58
- Description
59
60
+ * - autoIndexId
61
+ - boolean
62
+ - Specify ``false`` to disable the automatic creation of an index on the
63
+ ``_id`` field.
64
+
65
+ :gold:`IMPORTANT:` For replica sets, do not set
66
+ ``autoIndexId`` to ``false``.
67
68
+ .. deprecated:: 1.4
69
+ This option has been deprecated since MongoDB 3.2. As of MongoDB
70
+ 4.0, this option cannot be ``false`` when creating a replicated
71
+ collection (i.e. a collection outside of the ``local`` database in
72
+ any mongod mode).
73
74
* - capped
75
- boolean
76
- To create a capped collection, specify ``true``. If you specify
0 commit comments