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:

}