diff --git a/lib/db.js b/lib/db.js index 77c22530ff..5681695ca2 100644 --- a/lib/db.js +++ b/lib/db.js @@ -492,7 +492,7 @@ Db.prototype.collection = function(name, options, callback) { * @param {object} [options.pkFactory] A primary key factory object for generation of custom _id keys. * @param {(ReadPreference|string)} [options.readPreference] The preferred read preference (ReadPreference.PRIMARY, ReadPreference.PRIMARY_PREFERRED, ReadPreference.SECONDARY, ReadPreference.SECONDARY_PREFERRED, ReadPreference.NEAREST). * @param {boolean} [options.serializeFunctions=false] Serialize functions on any object. - * @param {boolean} [options.strict=false] Returns an error if the collection does not exist + * @param {boolean} [options.strict=false] DEPRECATED: Returns an error if the collection does not exist * @param {boolean} [options.capped=false] Create a capped collection. * @param {boolean} [options.autoIndexId=true] DEPRECATED: Create an index on the _id field of the document, True by default on MongoDB 2.6 - 3.0 * @param {number} [options.size] The size of the capped collection in bytes. @@ -513,7 +513,7 @@ Db.prototype.collection = function(name, options, callback) { Db.prototype.createCollection = deprecateOptions( { name: 'Db.createCollection', - deprecatedOptions: ['autoIndexId'], + deprecatedOptions: ['autoIndexId', 'strict'], optionsIndex: 1 }, function(name, options, callback) {