MockHero

nullable

Logic

Always returns null. For testing NULL handling, optional fields, and database column behavior with missing values.

Example Outputs

null

API 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

Try it now

Generate nullable data instantly in the playground.

Generate Nullable + 155 more types via API

One API call. Multiple tables. Relational integrity. Free tier included.

Get Started Free