neo4j 仅返回数据

标签 neo4j cypher

当我运行密码查询时,返回以下结果。我试图仅返回数据,而不返回所有其他内容,例如传出关系、 self 和遍历。

    "labels": "http://localhost:7474/db/data/node/61/labels",
    "outgoing_relationships": "http://localhost:7474/db/data/node/61/relationships/out",
    "traverse": "http://localhost:7474/db/data/node/61/traverse/{returnType}",
    "all_typed_relationships": "http://localhost:7474/db/data/node/61/relationships/all/{-list|&|types}",
    "property": "http://localhost:7474/db/data/node/61/properties/{key}",
    "self": "http://localhost:7474/db/data/node/61",
    "properties": "http://localhost:7474/db/data/node/61/properties",
    "outgoing_typed_relationships": "http://localhost:7474/db/data/node/61/relationships/out/{-list|&|types}",
    "incoming_relationships": "http://localhost:7474/db/data/node/61/relationships/in",
    "extensions": {},
    "create_relationship": "http://localhost:7474/db/data/node/61/relationships",
    "paged_traverse": "http://localhost:7474/db/data/node/61/paged/traverse/{returnType}{?pageSize,leaseTime}",
    "all_relationships": "http://localhost:7474/db/data/node/61/relationships/all",
    "incoming_typed_relationships": "http://localhost:7474/db/data/node/61/relationships/in/{-list|&|types}"
    "data": {},

如何只返回数据?

最佳答案

使用 Neo4j 2.0,您将使用事务休息端点:

http://docs.neo4j.org/chunked/milestone/rest-api-transactional.html

在 1.9 中,您可以只返回节点或关系的单个属性,然后仅返回原始数据。

关于neo4j 仅返回数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20103092/

相关文章:

java - Neo4j 重新排序路径

java - 使用 Neo4J OGM 映射树结构

java - Neo4J-Java : Result incomplete

neo4j - 在不区分大小写的搜索中处理特殊字符

performance - 在 Neo4j 中使用 FOREACH 时删除关系

java - Talend : Set up talend 5. 6.1 在 macosx 上使用 java 1.7 jdk

neo4j - Neo4j 中 Cypher 查询附带的重复属性

neo4j - 在 Neo4j 中使用 Cypher 设置空值

Neo4j:简单节点结构的递归查询

graph - Neo4j 查询具有相同关系的多个节点