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

Function SchemaString

lib/schema/string.js:25–29  ·  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

23 */
24
25function SchemaString(key, options) {
26 this.enumValues = [];
27 this.regExp = null;
28 SchemaType.call(this, key, options, 'String');
29}
30
31/**
32 * 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