---
title: debug.null() function
description: debug.null() returns the null value with a given type.
url: https://docs.influxdata.com/flux/v0/stdlib/internal/debug/null/
estimated_tokens: 216
product: Flux
version: v0
publisher: InfluxData
canonical: https://docs.influxdata.com/flux/v0/stdlib/internal/debug/null/
date: '2024-04-08T16:01:02-06:00'
lastmod: '2024-04-08T16:01:02-06:00'
---

* Flux 0.179.0+

InfluxDB support

`debug.null()` returns the null value with a given type.

##### Function type signature

```js
(?type: string) => A where A: Basic
```

For more information, see [Function type signatures](/flux/v0/function-type-signatures/).

## Parameters

### type

Null type.

**Supported types**:

* string
* bytes
* int
* uint
* float
* bool
* time
* duration
* regexp

## Examples

### Include null values in an ad hoc stream of tables

```js
import "array"
import "internal/debug"

array.from(rows: [{a: 1, b: 2, c: 3}, {a: debug.null(type: "int"), b: 5, c: 6}])
```

[](#view-example-output)

View example output

#### Output data

| a | b | c |
|---|---|---|
| 1 | 2 | 3 |
|   | 5 | 6 |

#### Related

* [Work with null types](/flux/v0/data-types/basic/null/)
| a | b | c |
| --- | --- | --- |
| a | b | c |
| 1 | 2 | 3 |
|  | 5 | 6 |
