From 74f3eb18f3e83dc9afb9ca1b9bf5e457719a38e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josip=20Mr=C4=91en?= Date: Wed, 15 Oct 2025 15:13:13 +0200 Subject: [PATCH] Add nullable to map.merge --- pages/advanced-algorithms/available-algorithms/map.mdx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pages/advanced-algorithms/available-algorithms/map.mdx b/pages/advanced-algorithms/available-algorithms/map.mdx index 4ae8f66f6..c5adb3bff 100644 --- a/pages/advanced-algorithms/available-algorithms/map.mdx +++ b/pages/advanced-algorithms/available-algorithms/map.mdx @@ -171,7 +171,9 @@ RETURN map.from_pairs([["b", 3], ["c", "c"]]) AS map; ### `merge()` The procedure merges two maps into one. If the same key occurs twice, the later -value will overwrite the previous one. +value will overwrite the previous one. + +If null is provided as an argument, it will resolve to an empty map. This function is equivalent to **apoc.map.merge**. @@ -179,8 +181,8 @@ This function is equivalent to **apoc.map.merge**. {

Input:

} -- `first: Map` ➡ A map containing key-value pairs that need to be merged with another map. -- `second: Map` ➡ The second map containing key-value pairs that need to be merged with the key-values from the first map. +- `first: mgp.Nullable[Map]` ➡ A map containing key-value pairs that need to be merged with another map. +- `second: mgp.Nullable[Map]` ➡ The second map containing key-value pairs that need to be merged with the key-values from the first map. {

Output:

}