string - Neo4j - 将节点属性集从字符串转换为整数

标签 string neo4j integer cypher

如果我在 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/

相关文章:

linux - 将 neo4j 数据库从 Windows 迁移到 Ubuntu

c++ - 利用 C++11 中 int*_t、int_fast*_t 和 int_least*_t 之间的差异的一个好例子是什么?

c++ - 类中字符串指针的编译错误

C# : Data collection to keep string?

c++ - 如何将字符串文字传递给用 C++ 处理的函数?

d3.js - 如何将 Neo4j 数据导出到 csv/json

javascript - 将字符串转换为 Int Javascript

java - 使用 graphdb 在节点之间建立关系

python - 错误 : Integers argument expected, float

integer - 32位有符号整数的最小值?