diff --git a/README.md b/README.md index 6a0e6ecc..4ef79129 100644 --- a/README.md +++ b/README.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) +``` +