MCPcopy Create free account
hub / github.com/Automattic/mongoose / SchemaString

Function SchemaString

lib/schema/string.js:20–24  ·  view source on GitHub ↗

* String SchemaType constructor. * * @param {String} key * @param {Object} options * @inherits SchemaType * @api public

(key, options)

Source from the content-addressed store, hash-verified

18 */
19
20function SchemaString(key, options) {
21 this.enumValues = [];
22 this.regExp = null;
23 SchemaType.call(this, key, options, 'String');
24}
25
26/**
27 * This schema type's name, to defend against minifiers that mangle

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected