📄️ Custom schema fields
If none of the defined options are useful you can create your own schemas with the schemaField method.
📄️ Custom Field
Function that allows customizing a value based on the current state of the dataset and schema documents
📄️ Enum Field
Returns one of the values of a passed array
📄️ Field config
You can define the configuration of the schema fields in two ways:
📄️ Key Field
Indicates that the field is the schema key
📄️ Nested Schema
You can define fields that are information objects by defining nested schemas with the schema method.
📄️ Reference Field
Reference to another schema, indicates that it will have one of the generated values of the selected field.
📄️ Sequence Field
It will generate an integer number that will be incremented for each document that is generated.
📄️ Sequential Field
Array of values that will be assigned according to the index of the document being created.