Skip to content

Commit

Permalink
add null transformer
Browse files Browse the repository at this point in the history
  • Loading branch information
evisdrenova committed Nov 14, 2023
1 parent 9906621 commit 1b47f67
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 1 deletion.
37 changes: 37 additions & 0 deletions docs/docs/transformers/system/null.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
title: Null
id: null-t
hide_title: true
slug: /transformers/system/null-t
---

import { TransformerPageHeader } from '@site/src/CustomComponents/TransformerPageHeader.tsx';

import { DocsTable } from '@site/src/CustomComponents/DocsTable.tsx';

<TransformerPageHeader
title="Null"
type="string"
apiRef="https://github.com/nucleuscloud/neosync/blob/main/worker/internal/benthos/transformers/activities.go"
/>

## Definition

The null transformer simply returns a null value. This may be useful if you a column that can't be null but don't have a specific value that you want to insert.

## Configurations

There are no configurations for the null transformer.

## Examples

Here are some examples of what an output null value may look like.

<DocsTable
headers={['Example Input', 'Example Output']}
rowData={[
{
data: ['N/A', 'null'],
},
]}
/>
2 changes: 1 addition & 1 deletion docs/docs/transformers/system/sha256hash.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ There are no configurations for the hash transformer.

## Examples

Here are some examples of what an output state value may look like.
Here are some examples of what an output hash value may look like.

<DocsTable
headers={['Example Input', 'Example Output']}
Expand Down
5 changes: 5 additions & 0 deletions docs/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,11 @@ const sidebars = {
id: 'transformers/system/hash',
label: 'Hash',
},
{
type: 'doc',
id: 'transformers/system/null-t',
label: 'Null Value',
},
{
type: 'doc',
id: 'transformers/system/ssn',
Expand Down

0 comments on commit 1b47f67

Please sign in to comment.