Node Inputs
Required Fields
- Project ID: Your Google Firestore project identifier
- Collection ID: Target collection for document storage
- JSON Data: Data to write in JSON format
Optional Fields
- Database ID: Specific database (default: “(default)”)
- Document ID: Custom identifier for the document
Node Output
- Status: Indicates whether the write operation was successful or not. Outputs “True” if successful and “False” if not.
Node Functionality
The Firestore Writer node creates or updates documents in Firestore collections. Key features include:- JSON data support
- Automatic ID generation
- Document updating
- Loop Mode support for batch write operations
- Secure authentication with Gumloop
When To Use
The Firestore Writer node is valuable for database operations. Common use cases include:- User Data: Store user profiles and preferences
- Application State: Save application configurations
- Event Logging: Record system events
- Data Collection: Store form submissions
- Saving user registration data
- Storing application settings
- Recording transaction history
- Maintaining customer records
Example
To store user information:- Configuration:
- Document will be created with either:
- Generated ID (if Document ID is empty)
- Specified ID (if Document ID is provided)
Important Considerations:
- Requires Authentication with Google Cloud - Set up in the Credentials page
- JSON must be properly formatted
- Document IDs must be valid strings