We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 091f54e commit ddc0650Copy full SHA for ddc0650
README.md
@@ -25,7 +25,11 @@ integrify({ config: { functions, db } });
25
module.exports.replicateMasterToDetail = integrify({
26
rule: 'REPLICATE_ATTRIBUTES',
27
source: {
28
- collection: 'master',
+ source: {
29
+ collection: 'master', // <-- This will append {masterId}
30
+ // OR
31
+ collection: 'master/{masterId}', // <-- Can be any string as in Firebase
32
+ },
33
},
34
targets: [
35
{
@@ -35,6 +39,7 @@ module.exports.replicateMasterToDetail = integrify({
39
masterField1: 'detail1Field1',
36
40
masterField2: 'detail1Field2',
37
41
42
+ deleteMissing: true, // Optional: Delete missing fields on update, defaults to false
38
43
44
45
collection: 'detail2',
0 commit comments