Skip to content

Commit cb87b23

Browse files
Update create.md
1 parent 93970c7 commit cb87b23

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ds/json/create.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Here's a query that creates a JSON document describing a single bike.
44

5-
```redis Create a JSON document
5+
```redis:[run_confirmation=true] Create a JSON document
66
JSON.SET bicycle:1 $ '{
77
"model": "Jigger",
88
"brand": "Velorim",
@@ -49,7 +49,7 @@ JSON.GET bicycle:1 $.addons[0]
4949

5050
You can create multiple documents in a single command using `JSON.MSET`:
5151

52-
```redis Add two more documents using JSON.MGET
52+
```redis:[run_confirmation=true] Add two more documents using JSON.MGET
5353
JSON.MSET "bicycle:2" $ "{\"model\": \"Hillcraft\", \"brand\": \"Bicyk\", \"price\": 1200, \"type\": \"Kids Mountain Bikes\", \"specs\": {\"material\": \"carbon\", \"weight\": \"11\"}, \"description\": \"A light mountain bike for kids.\", \"addons\": [\"reflectors\", \"safety lights\"],\"helmet_included\": false}" "bicycle:3" $ "{\"model\": \"Chook air 5\", \"brand\": \"Nord\", \"price\": 815, \"type\": \"Kids Mountain Bikes\", \"specs\": {\"material\": \"alloy\", \"weight\": \"9.1\"}, \"description\": \"A lighter, more durable mountain bike for six years and older.\", \"addons\": [\"reflectors\", \"safety lights\"],\"helmet_included\": false}"
5454
```
5555

@@ -73,4 +73,4 @@ JSON.STRLEN bicycle:1 $.description
7373
JSON.TYPE bicycle:1 $.helmet_included
7474
```
7575

76-
The `JSON.MERGE` can also be used to create new documents. `JSON.MERGE` will be covered in more detail later in this tutorial.
76+
The `JSON.MERGE` can also be used to create new documents. `JSON.MERGE` will be covered in more detail later in this tutorial.

0 commit comments

Comments
 (0)