English 中文(简体)
apoc.convert.to 尽管新4j装满并允许携带Apoc,但搜查是一种不为人知的职能。
原标题:apoc.convert.toString is an unknown function, even though apoc is loaded and enabled in neo4j

Question and context

我正试图将一些json输入新4j数据库。 我在新4j问题上几乎一刀切,因此,文字本身(见下文)可能比一点怀疑,但现在不是我的问题。 我的问题非常简单: 在管理文字时,我收到错误信息 不详功能背信条,toString (第4栏,第69栏(正文:196))“CALL apoc.create.node(n.labels, apoc.map.setKey(n.properties, id , apoc.convert.toString(n.InternalId))) YIELD node. ,我根本不理解为什么。 使用51.0个数据库从新4j台式台运行的Im。 无。 仅仅创建了数据库,安装了台式镜头,创建了一个波茨,配有一个单一<条码>apoc.import.file.enabled=true,以便安装一个波茨。 读到档案时,我确实看到了一个非常大的json文档,因此,这种文件似乎正在发挥作用,但应用<代码>apoc.convert.toString的功能并不可行。

我不知道进展如何,请帮助:

The code that causes the failure

CALL apoc.load.json("file:///foo.json") YIELD value
WITH value.nodes AS nodes, value.links AS rels
UNWIND nodes AS n
CALL apoc.create.node(n.labels, apoc.map.setKey(n.properties,  id , apoc.convert.toString(n.InternalId))) YIELD node
WITH rels, apoc.map.mergeList(COLLECT({id: apoc.convert.toString(n.InternalId), node: node})) AS nMap
UNWIND rels AS r
CALL apoc.create.relationship(nMap[apoc.convert.toString(r.Source)], r.type, r.properties, nMap[apoc.convert.toString(r.Target)]) YIELD rel
RETURN rel

问题回答

移至N4j 5.1

您应使用toString()。

but the new toString() does not convert objects to string. Is there another function that converts objects to String Examples this statement apoc.convert.toString(apoc.convert.toMap(nodes)) worked before with new function toString(apoc.convert.toMap(nodes) it does not work





相关问题
NoSQL or Ehcache caching?

I m 利用春天/Hibernate/Tomcat和我sql数据库建造一个路标网络

How does FlockDB compare with neo4j?

Both FlockDB and neo4j are open source frameworks for keeping large graph dataset. Anyone familiar enough with both products to write a comparison?

Problem Working with Neo

I downloaded Neoclipse Source and downloaded the Neo4J source. However some of the classes that the Neoclipse source file refers to are not found in the Neo4J source. Are they deprecated? Can I get ...

Neo4j Documentation [closed]

I ve been looking into setting up and trying out Neo4j on Amazon EC2 however I seem to have hit a road block with finding documentation that I can use. For example, this page mentions "Clustering, ...

热门标签