@edgedev/firebase 1.1.4 → 1.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -60,7 +60,7 @@ interface UserDataObject {
|
|
|
60
60
|
logInErrorMessage: string;
|
|
61
61
|
}
|
|
62
62
|
```
|
|
63
|
-
The reactive item **edgeFirebase.user.loggedIn** can be used in code or templates to determine if
|
|
63
|
+
The reactive item **edgeFirebase.user.loggedIn** can be used in code or templates to determine if the user is logged in.
|
|
64
64
|
|
|
65
65
|
If there is an error logging in, **edgeFirebase.user.logInError** will be true and **edgeFirebase.user.logInErrorMessage** can be used to return that error to the user.
|
|
66
66
|
|
|
@@ -103,7 +103,7 @@ const login = () => {
|
|
|
103
103
|
```
|
|
104
104
|
# Firestore Basic Document Interactions
|
|
105
105
|
### Adding/Update a Document.
|
|
106
|
-
Both adding and updating a document use the same function: **edgeFirebase.storeDoc(collectionPath, object)** for a document to be updated the object must contain the key **docId** and the value must match the ID of a document in the collection
|
|
106
|
+
Both adding and updating a document use the same function: **edgeFirebase.storeDoc(collectionPath, object)** for a document to be updated the object must contain the key **docId** and the value must match the ID of a document in the collection being updated *(Note: All documents returned by edgeFirebase functions will already have docId insert in the document objects)*. If the object does not contain docId or the docId doesn't match a document in the collection, new document will be created.
|
|
107
107
|
|
|
108
108
|
```javascript
|
|
109
109
|
<script setup>
|