Skip to content

Commit e56b5c3

Browse files
author
Veronika Matyus
committed
Add document param to postDocument example
1 parent fb2c5c5 commit e56b5c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/examples/src/ts/UpdateDoc.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ client
5858

5959
// Update the document in the database
6060
client
61-
.postDocument({ db: exampleDbName, document })
61+
.postDocument({ db: exampleDbName, document: document })
6262
// Note: for byte request (Input Stream) use:
6363
// .postDocument(
64-
// {db: exampleDbName, documentAsStream}
64+
// {db: exampleDbName, document: documentAsStream}
6565
// )
6666
.then((res) => {
6767
// Keeping track with the revision number of the document object:

0 commit comments

Comments
 (0)