Antoine
Antoine2w ago

Firestore node - Edit Document - From array to map

Hello community! I'm having an issue with the Edit Document node of Firestore (even with the Update Field node) in BS. When I try to update the properties of an array, they become a map in my database. But I want to keep it as an array. Any ideas? Thanks 🙂
3 Replies
AI Support
AI Support2w ago
Processing...
🤖 Tuning in to the data frequencies. 📡 this might take a couple of minutes... beep boop
AI Support
AI Support2w ago
🤖 AI Response
The issue of Firestore arrays being converted to maps/objects when updated via BuildShip nodes is a known technical limitation. The recommended solution is to use the "Add Object to Firestore Array" node after creating or updating your document. This node ensures the field is correctly set as an array in Firestore, resolving the conversion problem that occurs with the standard Edit Document or Update Field nodes. Current documentation does not cover this behavior in detail, so for persistent or complex cases, contacting BuildShip support directly is advised. 🔗 References: 1. https://support.buildship.com/m/1265650205303242844 2. https://support.buildship.com/m/1197695184029356084 3. https://support.buildship.com/m/1394001628876509325 4. https://support.buildship.com/m/1058028013020774480 5. https://buildship.com/integrations/firestore 6. https://buildship.com/integrations/apps/buildship-database-and-firestore 7. https://buildship.com/integrations/apps/buildship-database-and-firebase 8. https://templates.buildship.com/template/zHhOLL7y8a7I/update-firebase-field-to-array
BuildShip AI Support
Antoine
AntoineOP2w ago
Fixed! I used the node "Add Object to Firestore Array"

Did you find this page helpful?