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

Function SchemaString

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

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