Skip to content

Commit

Permalink
📚 docs: update README.md #4
Browse files Browse the repository at this point in the history
  • Loading branch information
pnguyen215 committed Jan 12, 2025
1 parent 0a1b22c commit d360053
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -350,3 +350,19 @@ eg.
> bank.#(eyeColor==~null)#.name >> ["Dalton Waters"]
> bank.#(company==~*)#.name >> ["Stark Jenkins","Odonnell Rollins","Rachelle Chang","Davis Wade","Oneill Everett","Dalton Waters"]
```
### Dot & Pipe
The `.` is the default separator, but you can also use a `|`.
In most situations, both produce the same results.
However, the `|` behaves differently from `.` when used after the `#` in the context of [Arrays](#access-values---array) and [Queries](#queries).
```shell
> bank.0.balance >> "$1,404.23"
> bank|0.balance >> "$1,404.23"
> bank.0|balance >> "$1,404.23"
> bank|0|balance >> "$1,404.23"
> bank.# >> 6
> bank|# >> 6
```

0 comments on commit d360053

Please sign in to comment.