Skip to content

Commit

Permalink
Node: fix examples in docs (#2763)
Browse files Browse the repository at this point in the history
fix docs

Signed-off-by: Yury-Fridlyand <[email protected]>
  • Loading branch information
Yury-Fridlyand authored Dec 10, 2024
1 parent 0e5e8df commit 03c7753
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node/src/server-modules/GlideJson.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export class GlideJson {
* ```typescript
* const value = {a: 1.0, b:2};
* const jsonStr = JSON.stringify(value);
* const result = await GlideJson.set("doc", "$", jsonStr);
* const result = await GlideJson.set(client, "doc", "$", jsonStr);
* console.log(result); // 'OK' - Indicates successful setting of the value at path '$' in the key stored at `doc`.
*
* const jsonGetStr = await GlideJson.get(client, "doc", {path: "$"}); // Returns the value at path '$' in the JSON document stored at `doc` as JSON string.
Expand Down Expand Up @@ -514,7 +514,7 @@ export class GlideJson {
* ```typescript
* const value = {bool: true, nested: {bool: false, nested: {bool: 10}}};
* const jsonStr = JSON.stringify(value);
* const resultSet = await GlideJson.set("doc", "$", jsonStr);
* const resultSet = await GlideJson.set(client, "doc", "$", jsonStr);
* // Output: 'OK'
*
* const resultToggle = await.GlideJson.toggle(client, "doc", {path: "$.bool"});
Expand Down

0 comments on commit 03c7753

Please sign in to comment.