MongoDB Empty Array

Hi,
I would like to have an empty array in Mongodb when I sent a no text to mongodb from baserow.
Unfortunatly I got always somthing the array.

After I choose type Array I always have to choose one off the five items. Say ‘text’. So I leave that empty. Everyting is empty but I still got no empty array.
See attachmentes.
Goals is:
image:Array (empty)
What I got is:
image: Array (1)
0: “”
I hope someone can tell me what I do wrong or what I have to do to get it empty.



You collapsed the Image field in your screenshot, so I couldn’t really tell how you are mapping an empty value.

Perhaps you can try using the special variable {{emptyarray}} ?

If you need further assistance, please provide the following:

1. Screenshots of module fields and filters

Please share screenshots of relevant module fields and filters in question? It would really help other community members to see what you’re looking at.

You can upload images here using the Upload icon in the text editor:

2. Scenario blueprint

Please export the scenario blueprint file to allow others to view the mappings and settings. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.


(Note: Exporting your scenario will not include private information or keys to your connections)

Uploading it here will look like this:

blueprint.json (12.3 KB)

3. And most importantly, Input/Output bundles

Please provide the input and output bundles of the trigger/iterator/aggregator modules by running the scenario (or get from the scenario History tab), then click the white speech bubble on the top-right of each module and select “Download input/output bundles”.

A.

Save each bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.

Uploading them here will look like this:

module-1-output-bundle.txt (12.3 KB)

B.

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles in this manner:

  • Either add three backticks ``` before and after the code, like this:

    ```
    input/output bundle content goes here
    ```

  • Or use the format code button in the editor:

Providing the input/output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.

Following these steps will allow others to assist you here. Thanks!

samliewrequest private consultation

Join the Make Fans Discord server to chat with other makers!

1 Like

Unfortunatly it did not work. The result is still 0:“” . I think it has got to do with the fact that I have to make a choice for text, date, boolean etc. There is nog empty option. But I hope you know better. Thanks!

blueprint (4).json (63.5 KB)

type or paste code here: Output
[
    {
        "_id": "666f469287367eddf15c2a41"
    }
]
type or paste code here INPUT

[
    {
        "__v": 1,
        "cao": [
            ""
        ],
        "image": [
            ""
        ],
        "title": "Zwemonderwijzer",
        "jobReq": [
            "Gecertificeerd als zweminstructeur.",
            "Ervaring met het geven van zwemlessen aan diverse leeftijdsgroepen.",
            "Uitstekende communicatievaardigheden.",
            "Vermogen om leerplannen aan te passen aan individuele behoeften."
        ],
        "status": "active",
        "jobType": [
            {
                "label": "Part Time",
                "value": "1"
            },
            {
                "label": "Full Time",
                "value": "2"
            },
            {
                "label": "Remote",
                "value": "3"
            },
            {
                "label": "Hybrid",
                "value": "4"
            }
        ],
        "category": "6627a684d8acfe267ced81d3",
        "createdAt": "2024-04-23T15:10:45.568Z",
        "updatedAt": "2024-06-14T10:04:03.708Z",
        "description": "<h3>Onderwijs en Training</h3><p>Als zwemonderwijzer geef je zwemles aan mensen van alle leeftijden. Je maakt lessen die passen bij wat je leerlingen nodig hebben en helpt ze om beter te worden in zwemmen. Het is belangrijk dat je goed uitlegt en laat zien hoe de technieken werken.</p> <h3>Samenwerking en Veiligheid</h3><p>Je werkt samen met andere instructeurs om een veilige en leuke sfeer in het zwembad te houden. Je helpt bij het plannen van de lessen en zorgt ervoor dat alles goed verloopt tijdens de zwemlessen. Veiligheid is altijd jouw prioriteit.</p> <h3>Persoonlijke Aandacht</h3><p>Je moet oog hebben voor hoe leerlingen zich ontwikkelen en altijd klaarstaan om hen te helpen en aan te moedigen. Dit betekent dat je geduldig en vriendelijk moet zijn, en altijd klaar moet staan om vragen te beantwoorden en problemen op te lossen.</p>",
        "motivationDoc": "",
        "qualification": [
            "Zwemonderwijzer certificering",
            "EHBO certificaat",
            "Leservaring kinderen"
        ],
        "responsibilities": [
            "Zwemlessen geven: Verantwoordelijk voor het geven van zwemlessen aan mensen van alle leeftijden en niveaus.",
            "Leerplannen ontwikkelen: Ontwikkelt en past leerplannen aan om aan de behoeften van de leerlingen te voldoen.",
            "Veiligheid waarborgen: Zorgt ervoor dat alle veiligheidsregels en procedures worden gevolgd tijdens de zwemlessen."
        ]
    }
]

Anyone? who is making the module? Can someone add an empty field in ‘type’ field that I have to choose after I have chosen the Array? So i can ‘choose’ an empty array?

Anyone? @samliew can you help me please?

You’ll have to turn on Mapping first before you map an array (or emptyarray) in the fields.

d062278e29d28fe5f4b75b1302a1475276a1c594

samliewrequest private consultation

Join the Make Fans Discord server to chat with other makers!