BuildShip Logo
BuildShip Community

Update Firebase Field to Array

This template automates the process of converting a string field in a Firebase document into an array field. It handles both newline and dash-separated strings, making it perfect for updating legacy string data into structured arrays. Key features include: - Automatic delimiter detection - Flexible input formatting (supports both newlines and dashes) - Whitespace trimming and empty item filtering - Preserves the original field while creating a new array field"

9

Report this template

Select the reason for reporting

Describe the issue in detail

Share template

Link to template

https://templates.buildship.com/template/zHhOLL7y8a7I/

Select an example

Inputs

id

1s2WLeDyCL6Zko4QtHMG

field

ingredients

projectId

gardoll-christmas-cocktails

collectionName

cocktails

updatedField

ingredientsArray
This is a static example using sample inputs. Remix the template to run it with your own values.

Output