Schema
Database schema examples
Generate string field schema
Generate number field schema
Generate boolean field schema
Generate objectId field schema
All in one data types
min & max validation
minLength & maxLength validation
unique validation
- It is done by API Maker so in case of concurrent insert/updates it will not work.
- Please create unique index at database level to get perfect unique result, and do not use this validation.
validatorFun
conversionFun example 1
conversionFun example 2
defaults [v1.11+]
defaultFun [v1.11+]
isPrimaryKey
enum
- To understand Schema in more details click here.