Skip to content

Commit 1f3fe0d

Browse files
authored
Merge pull request #113 from FalkorDB/AviAvni-patch-2
Update functions.md
2 parents 4868fc2 + 5c51904 commit 1f3fe0d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

datatypes.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,19 @@ $ redis-cli GRAPH.QUERY G "MATCH (n) RETURN n {.name, .age} AS projection"
136136
2) 1) 1) "{name: Jeff, age: 32}"
137137
```
138138

139+
#### Map merging
140+
141+
You can combine two maps, where values in the second map will override corresponding values in the first map.
142+
For example:
143+
144+
```sh
145+
$ redis-cli GRAPH.QUERY g "RETURN {a: 1, b: 2} + {a: 2, c: 3}"
146+
1) 1) "{a: 1, b: 2} + {a: 2, c: 3}"
147+
2) 1) 1) "{b: 2, a: 2, c: 3}"
148+
3) 1) "Cached execution: 0"
149+
2) "Query internal execution time: 0.467666 milliseconds"
150+
```
151+
139152
#### Function calls in map values
140153

141154
The values in maps and map projections are flexible, and can generally refer either to constants or computed values:

0 commit comments

Comments
 (0)