当我运行密码查询时,返回以下结果。我试图仅返回数据,而不返回所有其他内容,例如传出关系、 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/