Skip to content

Commit ddc0650

Browse files
fix(readme): Update readme
1 parent 091f54e commit ddc0650

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ integrify({ config: { functions, db } });
2525
module.exports.replicateMasterToDetail = integrify({
2626
rule: 'REPLICATE_ATTRIBUTES',
2727
source: {
28-
collection: 'master',
28+
source: {
29+
collection: 'master', // <-- This will append {masterId}
30+
// OR
31+
collection: 'master/{masterId}', // <-- Can be any string as in Firebase
32+
},
2933
},
3034
targets: [
3135
{
@@ -35,6 +39,7 @@ module.exports.replicateMasterToDetail = integrify({
3539
masterField1: 'detail1Field1',
3640
masterField2: 'detail1Field2',
3741
},
42+
deleteMissing: true, // Optional: Delete missing fields on update, defaults to false
3843
},
3944
{
4045
collection: 'detail2',

0 commit comments

Comments
 (0)