当我运行cypher查询时,会返回以下结果。我试图只返回数据,没有所有其他东西,如outgoing_relationships,self和traverse。
"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": {},
如何只返回数据?
答案 0 :(得分:2)
使用Neo4j 2.0,您将使用事务性休息端点:
http://docs.neo4j.org/chunked/milestone/rest-api-transactional.html
在1.9中,您只需返回节点或关系的各个属性,然后只返回原始数据。