ignore:
- "**/node_modules"
- .git
- "**/*.*[0-9]"
- "**/.*"
- "**/*~"
serviceAcc: path/to/service/account.json
users:
- id: user-id-1
data: '{"email": ""}'
- getFromProd: 2
- getFromProd: [id-of-a-user-in-production, another-id]
firestore:
- collection: workspaces
docs:
- id: ws-id-1
data: '{"userId": "user-id-1"}'
- id: ws-id-2
data: '{"userId": "user-id-2"}'
- getFromProd: 2
- getFromProd: [workspace-id-1, workspace-id-2]
- collection: collection/doc-id/subcollection
docs:
- id: doc-in-subcollection
data: '{}'
realtimeDB:
- ref: workspace-invites/workspace-1
children:
- child: user-1
data: '{"status":"accepted"}'
- child: user-2
data: '{"status":"pending"}'
- getFromProd: [user-3, user-4]
- ref: workspace-invites/workspace-2
children:
- getFromProd: all
functions:
- name: myHttpsFunction
type: https
method: get
route: /login/new?key=val
payload: '{"field":"value"}'
payload:
doc:
getFromProd:
collection: path/to/collection
id: doc-id
payload:
doc:
collection: path/to/collection
id: doc-id
- name: myHttpsCallableFunction
type: httpsCallable
asUser:
id: user-id
payload: '{}'
- name: myAuthOnCreateFunction
type: auth
trigger: onCreate
createUser:
id: new-user-id
data: '{"email": ""}'
createUser:
getFromProd:
id: user-id-in-production
- name: myAuthOnDeleteFunction
type: auth
trigger: onDelete
deleteUser:
id: existing-user-id
- name: myFirestoreOnCreateFunction
type: firestore
trigger: onCreate
createDoc:
collection: path/to/collection
id: new-doc-id
data: '{}'
createDoc:
getFromProd:
collection: path/to/collection
id: existing-doc-id
- name: myFirestoreOnDeleteFunction
type: firestore
trigger: onDelete
deleteDoc:
collection: path/to/collection
id: existing-doc-id
- name: myFirestoreOnUpdateFunction
type: firestore
trigger: onUpdate
updateDoc:
collection: path/to/collection
id: existing-doc-id
data: '{}'
- name: myFirestoreOnWriteFunction
type: firestore
trigger: onWrite
createDoc:
...
updateDoc:
...
deleteDoc:
...
- name: myRealtimeDBOnCreateFunction
type: realtimeDB
trigger: onCreate
createRef:
ref: path/to/reference
data: '{}'
createRef:
getFromProd:
ref: path/to/reference
- name: myRealtimeDBOnDeleteFunction
type: realtimeDB
trigger: onDelete
deleteRef:
ref: path/to/reference
- name: myRealtimeDBOnUpdateFunction
type: realtimeDB
trigger: onUpdate
updateRef:
ref: path/to/reference
data: '{}'
- name: myRealtimeDBOnWriteFunction
type: realtimeDB
trigger: onWrite
createRef:
...
updateRef:
...
deleteRef:
...