Firestore

Definition

kind: database
cluster: <cluster-name>
name: <database-name>
class: nosql
subClass: firestore

Consuming

Firestore can be consumed by services or lambdas.

consumes:
  - database: <database-name>
    actions:
      - subscribe
    subcriber: 
      event_type: write|create|update|delete
      document: <the-document-path>

Lambda Trigger

If Lambda consumes a Firestore using subscribe action, it automatically sets up a trigger to call the function whenever the document is modified.