简体   繁体   English

Neo4j GRASS样式表:如何显示节点或关系ID

[英]Neo4j GRASS stylesheet: how to show node or relationship id

Is it possible to use the id of a node or relationship in the stylesheet? 是否可以在样式表中使用节点或关系的ID?

Currently, I know that node property values can be used through {property-name} , relationship types can be used through <type> , but I do not know whether or how to get at the id; 目前,我知道可以通过{property-name}使用节点属性值,可以通过<type>使用关系类型,但是我不知道是否或如何获得id。 I've tried {id} (which shouldn't work) and <id> (which seemed plausible), but neither works. 我已经尝试过{id} (不起作用)和<id> (似乎合理),但是都没有起作用。

It works you have to use 它必须使用

caption: '<id>';

As you can see when you select the id field manually and then inspect the GRASS. 如您所见,当您手动选择id字段然后检查GRASS时。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM