Add a proper example for using the usebruno query library in the README file. (#3464)

This commit is contained in:
ganesh 2024-11-11 17:36:11 -08:00 committed by GitHub
parent bdfe9c16f1
commit 40001949b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -24,7 +24,7 @@ get(data, '..items[?]', { id: 2, amount: 20 })
```
Array mapping [?] with corresponding mapper function
```js
get(data, '..items[?].amount', i => i.amount + 10)
get(data, '..items..amount[?]', amt => amt + 10)
```
### Publish to Npm Registry