mirror of
https://github.com/usebruno/bruno.git
synced 2026-07-09 06:55:03 +00:00
feat(query): bruno-query package
This commit is contained in:
29
packages/bruno-query/readme.md
Normal file
29
packages/bruno-query/readme.md
Normal file
@@ -0,0 +1,29 @@
|
||||
# bruno-query
|
||||
|
||||
Bruno query with deep navigation, filter and map support
|
||||
|
||||
Easy array navigation
|
||||
```js
|
||||
get(data, 'customer.orders.items.amount')
|
||||
```
|
||||
Deep navigation .. double dots
|
||||
```js
|
||||
get(data, '..items.amount')
|
||||
```
|
||||
Array indexing
|
||||
```js
|
||||
get(data, '..items[0].amount')
|
||||
```
|
||||
Array filtering [?] with corresponding filter function
|
||||
```js
|
||||
get(data, '..items[?].amount', i => i.amount > 20)
|
||||
```
|
||||
Array mapping [?] with corresponding mapper function
|
||||
```js
|
||||
get(data, '..items[?].amount', i => i.amount + 10)
|
||||
```
|
||||
|
||||
### Publish to Npm Registry
|
||||
```bash
|
||||
npm publish --access=public
|
||||
```
|
||||
Reference in New Issue
Block a user