Martin
BBuildShip
•Created by Matthew on 5/28/2024 in #💬・general
Matthew - Hey guys! Need some assistance on the...
Hi @Matthew,
I would think the Support -> Buildship-help is where you'd want to post this, as you're more likely to get support there.
I'd also provide more details on how and where you're planning to use the data from Rapid so that we can understand your usecase better.
3 replies
BBuildShip
•Created by AshishRoshan on 4/12/2024 in #❓・buildship-help
Adding value to a list which already has that value
arrayUnion() checks uniqueness, hence your issue.
Perhaps try this:
export default async function addObjectToArray(collectionName, documentID, fieldKey, object, projectId) {
try {
const firestore = new Firestore({
projectId: projectId && projectId.length > 1 ? projectId.trim() : undefined
});
// Retrieve the current document
const docRef = firestore.collection(collectionName).doc(documentID);
const doc = await docRef.get();
if (!doc.exists) {
throw new Error('Document does not exist!');
}
// Get the current array and add the new object
let currentArray = doc.data()[fieldKey];
currentArray.push(object); // Add the object to the array
// Update the document with the new array
await docRef.update({
[fieldKey]: currentArray
}, { merge: true });
return { success: true };
} catch (e) {
return e;
}
}
6 replies
BBuildShip
•Created by safir.ali on 4/8/2024 in #❓・buildship-help
API call to Buildship from FlutterFlow app not being sent
@El Mago does the API call work when calling from a service like Postman to Buildship?
11 replies
BBuildShip
•Created by AshishRoshan on 4/12/2024 in #❓・buildship-help
Adding value to a list which already has that value
Hi @AshishRoshan, could you post your flow and where you're having the problem. It's not clear from your post.
6 replies
BBuildShip
•Created by Taylor Quade on 2/22/2024 in #❓・buildship-help
Is there a tutorial or guide...
3 replies
BBuildShip
•Created by DocteurKiki on 2/27/2024 in #❓・buildship-help
Is there a standard way to create DTO ?
Hi @DocteurKiki,
I might be understand you wrong, but a DTO is really just a collection of data points. As such, I wouldn't worry too much about transforming to a DTO. but I would transform to JSON and then use this as a collection for further processes.
Does that make sense?
HTH,
Martin
3 replies
BBuildShip
•Created by Hamilton T da Silva on 3/3/2024 in #❓・buildship-help
How upload data to MySQL from a CSV file?
4 replies
BBuildShip
•Created by Martin on 1/5/2024 in #❓・buildship-help
CreateMyPDF API call
You, sir, are a legend! That worked perfectly on both counts - thank you very much, @Gaurav Chadha!
4 replies
BBuildShip
•Created by Sravan G on 11/26/2023 in #❓・buildship-help
buildship security features
nch
16 replies
BBuildShip
•Created by Martin on 12/11/2023 in #❓・buildship-help
I've created a flow via the template (image attached) that:
Thanks @Luis that worked perfectly!
13 replies
BBuildShip
•Created by Martin on 12/11/2023 in #❓・buildship-help
I've created a flow via the template (image attached) that:
@Gaurav Chadha wow, I didn't know you could do that!
13 replies
BBuildShip
•Created by Martin on 12/11/2023 in #❓・buildship-help
I've created a flow via the template (image attached) that:
13 replies
BBuildShip
•Created by Martin on 12/11/2023 in #❓・buildship-help
I've created a flow via the template (image attached) that:
Yes! I've done that now
13 replies
BBuildShip
•Created by Martin on 12/11/2023 in #❓・buildship-help
I've created a flow via the template (image attached) that:
sure thing. I'm unsure how to share though?
13 replies
BBuildShip
•Created by Martin on 12/11/2023 in #❓・buildship-help
I've created a flow via the template (image attached) that:
TLDR: HTML to PDF doesn't make a change OR the link to the file doesn't change.
13 replies