diff --git a/readme-template.md b/readme-template.md index 12477186..4ad0bef5 100644 --- a/readme-template.md +++ b/readme-template.md @@ -88,6 +88,19 @@ await box.private.set('email', 'oed@email.service') await box.private.remove('email') ``` +##### Set multiple fields at once: +```js +const fields = ['name', 'website', 'employer'] +const values = ['Jon Schwartz', 'openworklabs.com', 'Open Work Labs'] + +await box.public.setMultiple(fields, values) + +const privateFields = ['age', 'coinBalance'] +const privateValues = ['xxx', 'yyy'] + +await box.private.setMultiple(privateFields, privateValues) +``` +