Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/neo4j/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Neo4j 有没有办法从密码结果中删除_id _type_Neo4j_Cypher_Neo4j Apoc - Fatal编程技术网

Neo4j 有没有办法从密码结果中删除_id _type

Neo4j 有没有办法从密码结果中删除_id _type,neo4j,cypher,neo4j-apoc,Neo4j,Cypher,Neo4j Apoc,我使用apoc.convert.toTree()过程将查询结果转换为一棵树,然后过滤结果以仅获取两个属性。但是,在生成的有效负载中,我得到了两个无法删除的属性_id和_type 这是我的查询,我应该只获取prefLabel和uri: MATCH p=(n {uri:'https://enterprise.poolparty.biz/Taxo_test/11325'})-[:narrower*]->(m) WHERE NOT ()-[:narrower]->(n) WITH COLLE

我使用apoc.convert.toTree()过程将查询结果转换为一棵树,然后过滤结果以仅获取两个属性。但是,在生成的有效负载中,我得到了两个无法删除的属性_id和_type

这是我的查询,我应该只获取prefLabel和uri:

MATCH p=(n {uri:'https://enterprise.poolparty.biz/Taxo_test/11325'})-[:narrower*]->(m)
WHERE NOT ()-[:narrower]->(n)
WITH COLLECT(p) AS ps
call apoc.convert.toTree(ps, true, { nodes: {CategoryNode: ['prefLabel', 'uri']} }) yield value
RETURN value;
结果具有标签和id对象:

{
                            "_type": "CategoryNode",
                            "narrower": [{
                                    "_type": "CategoryNode",
                                    "narrower": [
                                        {
                                            "_type": "CategoryNode",
                                            "_id": {
                                                "low": 2530,
                                                "high": 0
                                            },
                                            "uri": "https://enterprise.poolparty.biz/Taxo_test/13594",
                                            "prefLabel": "Haie artificielle"
                                        }
                                    ],
                                    "_id": {
                                        "low": 2528,
                                        "high": 0
                                    },
                                    "uri": "https://enterprise.poolparty.biz/Taxo_test/11325",
                                    "prefLabel": "Occultation plastique"
                                },

您使用的是哪一版本的APOC?这个过程的定义是apoc.convert.toTree(PATH::LIST?of PATH?,lowercaseeres=true::BOOLEAN?:(value::MAP?)Hello@logisima,我使用的是最新的apoc-3.5.0.3