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

Function SchemaString

lib/schema/string.js:28–32  ·  view source on GitHub ↗

* String SchemaType constructor. * * @param {string} key * @param {object} options * @param {object} schemaOptions * @param {Schema} parentSchema * @inherits SchemaType * @api public

(key, options, _schemaOptions, parentSchema)

Source from the content-addressed store, hash-verified

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