Skip to content

Commit 2839e23

Browse files
committed
Add transformToDb to README
1 parent 4c0bf95 commit 2839e23

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ const options = {
112112
firestoreCostsLogger: {
113113
enabled: false,
114114
localStoragePrefix // optional
115-
}
115+
},
116+
// Function to transform documents before they are written to Firestore
117+
transformToDb: (resourceName, document, documentId) => document
116118
}
117119

118120
const dataProvider = FirebaseDataProvider(config, options);

0 commit comments

Comments
 (0)