apoc.map

Qualified Name Type

apoc.map.clean(map,[skip,keys],[skip,values]) yield map filters the keys and values contained in those lists, good for data cleaning from CSV/JSON

Function

apoc.map.flatten(map, delimiter:'.') yield map - flattens nested items in map using dot notation

Function

apoc.map.fromLists([keys],[values])

Function

apoc.map.fromNodes(label, property)

Function

apoc.map.fromPairs([[key,value],[key2,value2],…​])

Function

apoc.map.fromValues([key1,value1,key2,value2,…​])

Function

apoc.map.get(map,key,[default],[fail=true]) - returns value for key or throws exception if key doesn’t exist and no default given

Function

apoc.map.groupBy([maps/nodes/relationships],'key') yield value - creates a map of the list keyed by the given property, with single values

Function

apoc.map.groupByMulti([maps/nodes/relationships],'key') yield value - creates a map of the list keyed by the given property, with list values

Function

apoc.map.merge(first,second) - merges two maps

Function

apoc.map.mergeList([{maps}]) yield value - merges all maps in the list into one

Function

apoc.map.mget(map,key,[defaults],[fail=true]) - returns list of values for keys or throws exception if one of the key doesn’t exist and no default value given at that position

Function

apoc.map.removeKey(map,key,{recursive:true/false}) - remove the key from the map (recursively if recursive is true)

Function

apoc.map.removeKeys(map,[keys],{recursive:true/false}) - remove the keys from the map (recursively if recursive is true)

Function

apoc.map.setEntry(map,key,value)

Function

apoc.map.setKey(map,key,value)

Function

apoc.map.setLists(map,[keys],[values])

Function

apoc.map.setPairs(map,[[key1,value1],[key2,value2])

Function

apoc.map.setValues(map,[key1,value1,key2,value2])

Function

apoc.map.sortedProperties(map, ignoreCase:true) - returns a list of key/value list pairs, with pairs sorted by keys alphabetically, with optional case sensitivity

Function

apoc.map.submap(map,keys,[defaults],[fail=true]) - returns submap for keys or throws exception if one of the key doesn’t exist and no default value given at that position

Function

apoc.map.updateTree(tree,key,) returns map - adds the {data} map on each level of the nested tree, where the key-value pairs match

Function

apoc.map.values(map, [key1,key2,key3,…​],[addNullsForMissing]) returns list of values indicated by the keys

Function