diff --git a/lib/schema/bigint.js b/lib/schema/bigint.js index 218b113690e..24cff4ea9ed 100644 --- a/lib/schema/bigint.js +++ b/lib/schema/bigint.js @@ -68,8 +68,8 @@ SchemaBigInt.set = SchemaType.set; * #### Example: * * // Make Mongoose cast empty string '' to false. - * const original = mongoose.Schema.Boolean.cast(); - * mongoose.Schema.Boolean.cast(v => { + * const original = mongoose.Schema.BigInt.cast(); + * mongoose.Schema.BigInt.cast(v => { * if (v === '') { * return false; * } @@ -77,7 +77,7 @@ SchemaBigInt.set = SchemaType.set; * }); * * // Or disable casting entirely - * mongoose.Schema.Boolean.cast(false); + * mongoose.Schema.BigInt.cast(false); * * @param {Function} caster * @return {Function}