apoc.map

Qualified Name Type

apoc.map.clean(map Map<String, Any>, keys [String], values [Any]) - filters the keys and values contained in the given lists.

Function

apoc.map.flatten(map Map<String, Any>, delimiter String) - flattens nested items in the given map. This function is the reverse of the apoc.map.unflatten function.

Function

apoc.map.fromLists(keys [String], values [Any]) - creates a map from the keys and values in the given list.

Function

apoc.map.fromNodes(label String, prop String) - creates a map from the labels and properties of the given nodes.

Function

apoc.map.updateTree(tree Map<String, Any>, key String, data [[key Any, value Any]])- adds the data map on each level of the nested tree, where the key-value pairs match.

Function

apoc.map.fromValues(values [Any]) - creates a map from the alternating keys and values in the given list.

Function

apoc.map.get(map Map<String, Any>, key String, value Any, fail Boolean) - returns a value for the given key. If the given key does not exist, or lacks a default value, this function will throw an exception.

Function

apoc.map.groupBy(values [Any], key String) - creates a map of the list keyed by the given property, with single values.

Function

apoc.map.groupByMulti(values [Any], key String) - creates a map of the lists keyed by the given property, with the list values.

Function

apoc.map.merge(map1 Map<String, Any>, map2 Map<String, Any>) - merges the two given maps into one map.

Function

apoc.map.mergeList(maps [Map<String, Value>]) - merges all maps in the given list into one map.

Function

apoc.map.mget(map Map<String, Any>, keys [String], values [Any], fail Boolean) - returns a list of values for the given keys. If one of the keys does not exist, or lacks a default value, this function will throw an exception.

Function

apoc.map.removeKey(map Map<String, Any>, key String, config Map<String, Any>) - removes the given key from the map (recursively if recursive is true).

Function

apoc.map.removeKeys(map Map<String, Any>, keys [String], config Map<String, Any>) - removes the given keys from the map (recursively if recursive is true).

Function

apoc.map.setEntry(map Map<String, Any>, key String, value Any) - adds or updates the given entry in the map.

Function

apoc.map.setKey(map Map<String, Any>, key String, value Any) - adds or updates the given entry in the map.

Function

apoc.map.setLists(map Map<String, Any>, keys [String], values [Any]) - adds or updates the given keys/value pairs provided in list format (e.g. [key1, key2],[value1, value2]) in a map.

Function

apoc.map.setPairs(map Map<String, Any>, pairs [[key Any, value Any]]) - adds or updates the given key/value pairs (e.g. [key1,value1],[key2,value2]) in a map.

Function

apoc.map.setValues(map Map<String, Any>, pairs [[key Any, value Any]]) - adds or updates the alternating key/value pairs (e.g. [key1,value1,key2,value2]) in a map.

Function

apoc.map.sortedProperties(map Map<String, Any>, ignoreCase Boolean) - returns a list of key/value pairs in a list. The pairs are sorted by alphabetically by key, with optional case sensitivity.

Function

apoc.map.submap(map Map, keys [String], values [Any], fail Boolean) - returns a sub-map for the given keys. If one of the keys does not exist, or lacks a default value, this function will throw an exception.

Function

apoc.map.unflatten(map Map<String, Any>, delimiter String) - unflattens items in the given map to nested items. This function is the reverse of the apoc.map.flatten function.

Function

apoc.map.updateTree(tree Map<String, Any>, key String, data [[key Any, value Any]])- adds the data map on each level of the nested tree, where the key-value pairs match.

Function

apoc.map.values(map Map<String, Any>, keys [String], addNullsForMissing Boolean) - returns a list of values indicated by the given keys (returns a null value if a given key is missing).

Function