aledepi
aledepi9mo ago

Create document in a SUBcollection in Firestore

Hi, I'm listening a stripe webhook after a subscription is created. I need to create a new document (with info from the webhook) in a user SUBcollection. I'm able to create the document it in a new collection, but not in a SUBcollection, can you share with me how to modify the node to do it? Thank you
10 Replies
Gaurav Chadha
Gaurav Chadha9mo ago
Hi @aledepi, No need to modify the node, you can directly add subcollection path in the collection name and add the ID in the Document ID. It will create a document in subcollection in Firestore.
No description
aledepi
aledepi9mo ago
Perfect, thank you! I will try soon
Thomas
Thomas4mo ago
Dear @Gaurav Chadha - how do i query a subcollection for documents? I get "Value for argument "fieldPath" is not a valid field path. Paths can't be empty and must not contain "*~/[]". Thanks
AI Support
AI Support4mo ago
To query a subcollection for documents in BuildShip, you need to ensure that the fieldPath argument is correctly formatted and does not contain invalid characters such as "*~/[]". For detailed guidance on querying subcollections, please refer to the BuildShip documentation. If you can't find the specific information you need, you can submit your query via the in-app support button for further assistance. You can find more information on querying collections and subcollections in the BuildShip documentation. If you still encounter issues, please submit your query via the in-app support button.
Thomas
Thomas4mo ago
my path is: /listings/wJ0GuUW3AjzKq5P7VQg3/productQuestions this worked for creating the document in the subcollection, but when i query i get the error
AI Support
AI Support4mo ago
To address issues related to querying documents in subcollections, please ensure that the path and query parameters are correctly specified. For further assistance, please submit your query via the in-app support button. For more details on working with BuildShip's database and collections, you can refer to the documentation: - BuildShip Database Integration If you need specific instructions on querying subcollections, please provide more details or submit via in-app support.
BuildShip Database – BuildShip
A unified resource to start building your backend with low-code. Dive into triggers, nodes, and step-by-step guidance to jumpstart your workflow creation.
Thomas
Thomas4mo ago
No description
AI Support
AI Support4mo ago
Sure, I'd be happy to assist! Could you please provide more details or specify your question related to BuildShip? This will help me give you a more accurate and helpful response.
John Latchaw
John Latchaw4mo ago
Teaching people on how to earn $30k or more within 72 hours but you will pay me 10% of your profit when you receive it. Note only interest people should apply, drop a message let's get started by asking (HOW) ?? WhatsApp +1 (928) 435-9643
AI Support
AI Support4mo ago
It seems like you're asking about creating a workflow or assistant to help people learn how to earn a certain amount of money within a short period. However, your request appears to be more of a business proposition rather than a technical question related to BuildShip. If you have specific technical questions about how to set up an assistant or workflow in BuildShip to achieve a certain task, please let me know! For example, if you need help creating an assistant to guide users through a money-earning process or setting up a workflow to automate certain tasks, I can provide guidance on that. For detailed instructions on creating and managing AI Assistants in BuildShip, you can refer to the AI Assistant Builder Guide. If your question is more about the business model or the specific steps to achieve the financial goal, it might be better suited for a different platform or consulting service.