如果我在 Neo4j 中有一组具有相同属性的节点,是否有办法将所有这些节点的某个属性的类型从 string 转换为 int(反之亦然)?
最佳答案
怎么样
MATCH (n:Type)
WHERE <filter if required>
SET n.strProp = toInt(n.strProp)
和
MATCH (n:Type)
WHERE <filter if required>
SET n.intProp = toString(n.intProp)
关于string - Neo4j - 将节点属性集从字符串转换为整数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35236519/