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 6f2ac19 commit 1e3bc99Copy full SHA for 1e3bc99
lib/options/schemaUnionOptions.js
@@ -15,15 +15,15 @@ class SchemaUnionOptions extends SchemaTypeOptions {}
15
const opts = require('./propertyOptions');
16
17
/**
18
- * If set, specifies the type of this map's values. Mongoose will cast
19
- * this map's values to the given type.
+ * If set, specifies the types that this union can take. Mongoose will cast
+ * the value to one of the given types.
20
*
21
- * If not set, Mongoose will not cast the map's values.
+ * If not set, Mongoose will not cast the value to any specific type.
22
23
* @api public
24
* @property of
25
* @memberOf SchemaUnionOptions
26
- * @type {Function|string}
+ * @type {Function|Function[]|string|string[]}
27
* @instance
28
*/
29
0 commit comments