Converts a key-value map into a format that we can put into a Cypher query.
Converts a key-value map into a format that we can put into a Cypher query. For example CREATE (record:Record $data) RETURN record
where $data is {fieldA: foo, fieldB: 42}
.
With different queries depending on different formats we can configure the opening and closing character and of the result and also the key-value delimiter.
key-value map to convert into {key1: value1, key2: value2, ...}
format
sometimes a prefix is needed for values
string separating keys from values
string appended before the resulting total string
string appended after the resulting total string
string representation of input key-value map: {key1: value1, key2: value2, ...}
A version of keyValueToString()
with defaults appropriate for SET
clauses.
A version of keyValueToString()
with defaults appropriate for SET
clauses.
key-value map to convert into n.key1 = value1, n.key2 = value2, ...
format
prefix of keys so Cypher know in what reference to do the update
string representation of input key-value map: n.key1 = value1, n.key2 = value2, ...
author: cvandrei since: 2018-08-08