nullable
LogicAlways returns null. For testing NULL handling, optional fields, and database column behavior with missing values.
Example Outputs
nullAPI Usage
Send a POST request to generate nullable data:
curl -X POST https://mockhero.dev/api/v1/generate \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"tables": [
{
"name": "example",
"count": 5,
"fields": [
{
"name": "nullable",
"type": "nullable"
}
]
}
]
}'Common Use Cases
- NULL handling testing
- Optional field testing
- Database constraint testing
Quick Info
- Field Type
- nullable
- Category
- Logic
- Parameters
- None required
- Output Format
- JSON, CSV, SQL
Related Types
Generate Nullable + 155 more types via API
One API call. Multiple tables. Relational integrity. Free tier included.