File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change @@ -119,4 +119,52 @@ this.Person.delete(key)
119
119
120
120
// update document
121
121
this .Person .update (key)
122
+ ```
123
+
124
+ ### API
125
+
126
+ #### Firebase database.
127
+
128
+ Add JSON document.
129
+
130
+ ```
131
+ Syntax: model.push()
132
+ return: Promise
133
+ ```
134
+
135
+ Delete JSON document.
136
+
137
+ ```
138
+ Syntax: model.remove(document_key)
139
+ return: Promise
140
+ ```
141
+
142
+ Update JSON document.
143
+
144
+ ```
145
+ Syntax: model.update(document_key)
146
+ return: Promise
147
+ ```
148
+
149
+ #### Cloud Firestore.
150
+
151
+ Add JSON document.
152
+
153
+ ```
154
+ Syntax: model.add()
155
+ return: Promise
156
+ ```
157
+
158
+ Delete JSON document.
159
+
160
+ ```
161
+ Syntax: model.delete(document_key)
162
+ return: Promise
163
+ ```
164
+
165
+ Update JSON document.
166
+
167
+ ```
168
+ Syntax: model.update(document_key)
169
+ return: Promise
122
170
```
You can’t perform that action at this time.
0 commit comments