File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ const updateDoc = async () => {
36
36
} )
37
37
) . result ;
38
38
39
- // Note: for byte response (Output Stream) use:
39
+ // Note: for response byte stream use:
40
40
// const documentAsStream = (
41
41
// await client.getDocumentAsStream({
42
42
// docId: 'example',
@@ -58,11 +58,11 @@ const updateDoc = async () => {
58
58
} )
59
59
) . result . rev ;
60
60
61
- // Note: for byte request (Input Stream) use:
61
+ // Note: for request byte stream use:
62
62
// document._rev = (
63
63
// await client.postDocument({
64
64
// db: exampleDbName,
65
- // document: inputStream ,
65
+ // document: documentAsByteStream ,
66
66
// })
67
67
// ).result.rev;
68
68
Original file line number Diff line number Diff line change @@ -35,14 +35,14 @@ const getDocParams: CloudantV1.GetDocumentParams = {
35
35
db : exampleDbName ,
36
36
} ;
37
37
38
- // Note: for byte response (Output Stream) use:
38
+ // Note: for response byte stream use:
39
39
// const getdocAsStreamParam: CloudantV1.GetDocumentAsStreamParams = {
40
40
// docId: 'example',
41
41
// db: exampleDbName,
42
42
// };
43
43
// client
44
44
// .getDocumentAsStream(getdocAsStreamParam)
45
- // .then((outputStream ) => {});
45
+ // .then((documentAsStream ) => {});
46
46
47
47
client
48
48
. getDocument ( getDocParams )
59
59
// Update the document in the database
60
60
client
61
61
. postDocument ( { db : exampleDbName , document : document } )
62
- // Note: for byte request (Input Stream) use:
62
+ // Note: for request byte stream use:
63
63
// .postDocument(
64
- // {db: exampleDbName, document: documentAsStream }
64
+ // {db: exampleDbName, document: documentAsByteStream }
65
65
// )
66
66
. then ( ( res ) => {
67
67
// Keeping track with the revision number of the document object:
You can’t perform that action at this time.
0 commit comments