Skip to content

Commit

Permalink
fix: setField, setBulk in docs to use right function names, fixes #102
Browse files Browse the repository at this point in the history
  • Loading branch information
Stuyk committed Jul 11, 2024
1 parent 0dc310a commit 22c74c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/api/server/document/document-global.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ async function doSomething() {
const document = await Rebar.document.global.useGlobal('my-identifier-goes-here-for-my-document');

// Overwrite or set a single field
document.setField<MyDataType>('totalMoneyCreated', 200);
document.set<MyDataType>('totalMoneyCreated', 200);

// Overwrite multiple fields
document.setField<MyDataType>({ totalMoneyCreated: 200, totalMoneyDestroyed: 200 });
document.setBulk<MyDataType>({ totalMoneyCreated: 200, totalMoneyDestroyed: 200 });
}
```

0 comments on commit 22c74c9

Please sign in to comment.