Neo4j为返回的节点添加查询

时间:2016-09-05 09:35:52

标签: neo4j

我执行查询

MATCH (translation:TlTranslation) 
WITH translation 
MATCH (lang:TlLanguage)-[lt_r:LANGUAGE_TRANSLATION_REL]->(translation),
(translation)-[tf_r:TRANSLATION_FRAGMENT_REL]->(fragment:TlFragment),
(fragment)<-[bf_r:BLOCK_FRAGMENT_REL]-(block:TlBlock),
(block)<-[db_r:DOMAIN_BLOCK_REL]-(domain:TlDomain)
RETURN {kind: 'node', labels: labels(translation), 
id: id(translation), column: "translation"} AS __meta_translation,
translation, 
{kind: 'node', labels: labels(lang), id: id(lang), column: "lang"} AS __meta_lang, 
lang, 
{kind: 'node', labels: labels(fragment), id: id(fragment), column: "fragment"} AS __meta_fragment, 
fragment, 
{kind: 'node', labels: labels(block), id: id(block), column: "block"} AS __meta_block, 
block, 
{kind: 'node', labels: labels(domain), id: id(domain), column: "domain"} AS __meta_domain, 
domain, 
{kind: 'relationship', type: type(lt_r), startId: id(startNode(lt_r)),
endId: id(endNode(lt_r)), id: id(lt_r), column: "lt_r"} AS __meta_lt_r,
lt_r, 
{kind: 'relationship', type: type(tf_r), startId: id(startNode(tf_r)),
endId: id(endNode(tf_r)), id: id(tf_r), column: "tf_r"} AS __meta_tf_r,
tf_r, 
{kind: 'relationship', type: type(bf_r), startId: id(startNode(bf_r)),
endId: id(endNode(bf_r)), id: id(bf_r), column: "bf_r"} AS __meta_bf_r,
bf_r, 
{kind: 'relationship', type: type(db_r), startId: id(startNode(db_r)),
endId: id(endNode(db_r)), id: id(db_r), column: "db_r"} AS __meta_db_r,
db_r

我得到了一些节点和关系。 如何获取此节点的添加查询(已返回)? 我无法找到正确的答案。 请帮忙!

0 个答案:

没有答案