Skip to content

Commit afd294a

Browse files
committed
Docs
1 parent f009e35 commit afd294a

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

docs-devsite/firestore_.documentsnapshot.md

+12
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export declare class DocumentSnapshot<AppModelType = DocumentData, DbModelType e
4141
| [data(options)](./firestore_.documentsnapshot.md#documentsnapshotdata) | | Retrieves all fields in the document as an <code>Object</code>. Returns <code>undefined</code> if the document doesn't exist.<!-- -->By default, <code>serverTimestamp()</code> values that have not yet been set to their final value will be returned as <code>null</code>. You can override this by passing an options object. |
4242
| [exists()](./firestore_.documentsnapshot.md#documentsnapshotexists) | | Returns whether or not the data exists. True if the document exists. |
4343
| [get(fieldPath, options)](./firestore_.documentsnapshot.md#documentsnapshotget) | | Retrieves the field specified by <code>fieldPath</code>. Returns <code>undefined</code> if the document or field doesn't exist.<!-- -->By default, a <code>serverTimestamp()</code> that has not yet been set to its final value will be returned as <code>null</code>. You can override this by passing an options object. |
44+
| [toJSON()](./firestore_.documentsnapshot.md#documentsnapshottojson) | | |
4445

4546
## DocumentSnapshot.(constructor)
4647

@@ -144,3 +145,14 @@ any
144145

145146
The data at the specified field location or undefined if no such field exists in the document.
146147

148+
## DocumentSnapshot.toJSON()
149+
150+
<b>Signature:</b>
151+
152+
```typescript
153+
toJSON(): object;
154+
```
155+
<b>Returns:</b>
156+
157+
object
158+

docs-devsite/firestore_.querysnapshot.md

+12
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export declare class QuerySnapshot<AppModelType = DocumentData, DbModelType exte
3434
| --- | --- | --- |
3535
| [docChanges(options)](./firestore_.querysnapshot.md#querysnapshotdocchanges) | | Returns an array of the documents changes since the last snapshot. If this is the first snapshot, all documents will be in the list as 'added' changes. |
3636
| [forEach(callback, thisArg)](./firestore_.querysnapshot.md#querysnapshotforeach) | | Enumerates all of the documents in the <code>QuerySnapshot</code>. |
37+
| [toJSON()](./firestore_.querysnapshot.md#querysnapshottojson) | | |
3738

3839
## QuerySnapshot.docs
3940

@@ -126,3 +127,14 @@ forEach(callback: (result: QueryDocumentSnapshot<AppModelType, DbModelType>) =>
126127

127128
void
128129

130+
## QuerySnapshot.toJSON()
131+
132+
<b>Signature:</b>
133+
134+
```typescript
135+
toJSON(): object;
136+
```
137+
<b>Returns:</b>
138+
139+
object
140+

0 commit comments

Comments
 (0)