There was an error while loading. Please reload this page.
README.md
1 parent f933194 commit 61d0f5aCopy full SHA for 61d0f5a
1 file changed
packages/firestore/README.md
@@ -93,6 +93,36 @@ const deleteDocument = async () => {
93
});
94
};
95
96
+const writeBatch = async () => {
97
+ await FirebaseFirestore.writeBatch({
98
+ operations: [
99
+ {
100
+ type: 'set',
101
+ reference: 'users/Aorq09lkt1ynbR7xhTUx',
102
+ data: {
103
+ first: 'Alan',
104
+ last: 'Turing',
105
+ born: 1912
106
+ },
107
+ options: { merge: true },
108
109
110
+ type: 'update',
111
112
113
114
115
116
117
118
119
+ type: 'delete',
120
121
122
+ ],
123
+ });
124
+};
125
+
126
const getCollection = async () => {
127
const { snapshots } = await FirebaseFirestore.getCollection({
128
reference: 'users',
0 commit comments