Firebase Realtime Database icon

Firebase Realtime Database

Utilities for Firebase Realtime Database (scaffold)

Push

AI-generated

Overview

This node operation allows you to create a new child entry under a specified path in a Firebase Realtime Database. It uses the HTTP POST method to push data, which automatically generates a unique key for the new child. This is useful for adding new records or items to a list or collection in the database without overwriting existing data.

Use Case Examples

  1. Adding a new user record to a users list in Firebase.
  2. Pushing a new message to a chat room's message list.

Properties

Name Meaning
Database URL Base URL of your Firebase Realtime Database (without trailing slash). This is where the data will be pushed.
Path The JSON path in the database where the new child will be created. Leading slash is allowed but removed internally.
Use Input Item JSON If true, the node uses the entire JSON object from the input item as the data to push. If false, the node uses the specified fields to construct the data.
Return Determines the format of the response returned by the push operation.
Fields A collection of key-value pairs to be pushed as the new child data when 'Use Input Item JSON' is false. Supports various value types including string, number, boolean, array, object, and server timestamp.

Output

JSON

  • key - The unique key generated by Firebase for the new child (if 'Key Only' return mode is selected).
  • * - The full JSON response from Firebase containing the pushed data or confirmation.

Dependencies

  • Requires a Google Firebase Realtime Database OAuth2 API credential for authentication.

Troubleshooting

  • Ensure the Database URL is correct and does not have a trailing slash.
  • Verify the path is correctly formatted without leading slashes internally (the node handles this).
  • If using 'Use Input Item JSON', ensure the input item contains valid JSON data.
  • If 'Key Only' return mode is selected, the response will only contain the generated key, so accessing other data fields will not be possible.
  • Authentication errors may occur if the OAuth2 credentials are invalid or expired; re-authenticate if needed.

Discussion