Skip to content

Commit cc266e6

Browse files
authored
Multi Path Update (RedisJSON#659)
1 parent 191e8c6 commit cc266e6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/commands.md

+11
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,17 @@ OK
7878
"[{\"a\":2,\"b\":8}]"
7979
```
8080

81+
Updating multi paths
82+
```
83+
127.0.0.1:6379> JSON.SET doc $ '{"f1": {"a":1}, "f2":{"a":2}}'
84+
OK
85+
127.0.0.1:6379> JSON.SET doc $..a 3
86+
OK
87+
127.0.0.1:6379> json.get doc
88+
"{\"f1\":{\"a\":3},\"f2\":{\"a\":3}}"
89+
```
90+
91+
8192
### JSON.GET
8293

8394
> **Available since 1.0.0.**

0 commit comments

Comments
 (0)