SchemaType.String Class
Description
Schema type: String.
Constructor
SchemaType.String
([options])Methods
checkRequired
(value) Booleanq$exists
(data, value) BooleanChecks whether the field exists.
q$exists is also aliased as q$exist.
Parameters
- data Any
- value Any
Returns
q$gte
(data, value) BooleanChecks whether data is greater than or equal to value.
q$gte is also aliased as q$min.
Parameters
- data Any
- value Any
Returns
q$lte
(data, value) BooleanChecks whether data is less than or equal to value.
q$lte is also aliased as q$max.
Parameters
- data Any
- value Any
Returns
q$ne
(data, value) BooleanChecks whether data is equal to value. If not, return true.
Parameters
- data Any
- value Any
Returns
save
(value) AnyTransforms a value into JSON.
Parameters
- value Any
Returns
- Any
Properties
default
The default value of the field.
required
Determines whether the field is required.