Realtime Database(Firebase)

The Firebase Realtime Database is a cloud-hosted database. Data is stored as JSON and synchronized in realtime to every connected client. When you build cross-platform apps with our iOS, Android, and JavaScript SDKs, all of your clients share one Realtime Database instance and automatically receive updates with the newest data. Source: Google

Command

rhub add:action <group.eventId> <filterId> GCP REALTIME_DATABASE

Param

Description

eventId

The event that will receive te action.

Example: payment.payment-fulfilled

filterId

The filter/trigger in the event that will process the action.

Example: on-event

Prompt Questions

Operation Select the operation type, such as Standard or FIFO Queue.

Operation

Description

set

Save data into a document.

update

Update document data.

re

Remove document,

Path

The document path

YAML

SET
UPDATE
REMOVE
SET
-
id: my-action-id
async: false
type: GCP
action: REALTIME_DATABASE
operation: set
serviceAccountId: google-cloud-project-account
template:
path: my-document/path/in-json
payload:
keyName: '{keyName}'
UPDATE
-
id: my-action-id
async: false
type: GCP
action: REALTIME_DATABASE
operation: update
serviceAccountId: google-cloud-project-account
template:
path: my-document/path/in-json
payload:
keyName: '{keyName}'
REMOVE
-
id: my-action-id
async: false
type: GCP
action: REALTIME_DATABASE
operation: remove
serviceAccountId: google-cloud-project-account
template:
path: my-document/path/in-json