Skip to content

Commit

Permalink
createCollection doc: autoIndexId defaults to true
Browse files Browse the repository at this point in the history
Fix documentation since autoIndexId defaults to true, also on
capped collections.
  • Loading branch information
Tim Kuijsten committed Dec 8, 2012
1 parent c24544d commit 13e5222
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mongodb/db.js
Expand Up @@ -802,7 +802,7 @@ Db.prototype.removeUser = function(username, options, callback) {
* - **capped** {Boolean, default:false}, create a capped collection.
* - **size** {Number}, the size of the capped collection in bytes.
* - **max** {Number}, the maximum number of documents in the capped collection.
* - **autoIndexId** {Boolean, default:false}, create an index on the _id field of the document, not created automatically on capped collections.
* - **autoIndexId** {Boolean, default:true}, create an index on the _id field of the document.
* - **readPreference** {String}, the prefered read preference (ReadPreference.PRIMARY, ReadPreference.PRIMARY_PREFERRED, ReadPreference.SECONDARY, ReadPreference.SECONDARY_PREFERRED, ReadPreference.NEAREST).
* - **strict**, (Boolean, default:false) throws and error if collection already exists
*
Expand Down

0 comments on commit 13e5222

Please sign in to comment.