Skip to content

Commit

Permalink
Merge pull request #113 from FalkorDB/AviAvni-patch-2
Browse files Browse the repository at this point in the history
Update functions.md
  • Loading branch information
swilly22 authored Jan 15, 2025
2 parents 4868fc2 + 5c51904 commit 1f3fe0d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions datatypes.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,19 @@ $ redis-cli GRAPH.QUERY G "MATCH (n) RETURN n {.name, .age} AS projection"
2) 1) 1) "{name: Jeff, age: 32}"
```

#### Map merging

You can combine two maps, where values in the second map will override corresponding values in the first map.
For example:

```sh
$ redis-cli GRAPH.QUERY g "RETURN {a: 1, b: 2} + {a: 2, c: 3}"
1) 1) "{a: 1, b: 2} + {a: 2, c: 3}"
2) 1) 1) "{b: 2, a: 2, c: 3}"
3) 1) "Cached execution: 0"
2) "Query internal execution time: 0.467666 milliseconds"
```

#### Function calls in map values

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

0 comments on commit 1f3fe0d

Please sign in to comment.