BuildShipBBuildShip
Powered by
AbrarA
BuildShip•2y ago•
2 replies
Abrar

Store an Array of strings with 'Buildship - Create Document (with ref)' node

I am trying to store the following into a document,

{
"localities": [
"BEVERLY HILLS (NSW)",
"NARWEE (NSW)"
],
"postcode": "2209"
}


however when i run the standard 'Buildship - Create Document (with ref)' node, I get the following entry in my table... see attached screenshot.

how can i get it to store an array of strings and not an object with the index as key?
Screenshot_2024-06-17_at_3.43.50_AM.png
Solution
Hi @Abrar, Also sharing the fix here for community members with same issue, thanks for confirming on email about the fix worked.

From the node logic (BuildShip creates a document with DocRef), your workflow, shows that you have modified the logic for the extracted array, which is causing trouble here. Use the AI to edit if required.

To Fix this:

You can use the BuildShip Create Document node without DocRef instead, as your data doesn't involve any doc ref.

When importing the data to BuildShip storage, you can then select the type to array, and it should extract the data and it as an array.
Jump to solution
BuildShip banner
BuildShipJoin
Join founders, builders, devs using Low-code / No-code to create backend, APIs, scheduled Jobs, automation, AI workflows
7,971Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Buildship Database - Create Document within Loop Node not working correctly
creditcardspsCcreditcardsps / ❓・buildship-help
11mo ago
Google Cloud Storage "create document" node storing to Buildship storage
BeeGeeBBeeGee / ❓・buildship-help
2y ago
Create Document node not working
InterlooperIInterlooper / ❓・buildship-help
3y ago
Firestore node - Edit Document - From array to map
AntoineAAntoine / ❓・buildship-help
4mo ago