用于获取节点所有关系的密码查询不会在3.1中返回图形表示 [英] cypher query to get all relationship for a node doesn't return graphical representation in 3.1

查看:49
本文介绍了用于获取节点所有关系的密码查询不会在3.1中返回图形表示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将neo4j社区版本从3.0.3升级到了3.1,此查询不再返回该节点所有关系的图形表示.

I upgraded neo4j community edition from 3.0.3 to 3.1 and this query doesn't return graphical representation of all the relationships for this node anymore.

MATCH (:User {username: 'user6'})-[r]-()
RETURN r

为什么在3.1中不起作用?

Any reasons why it wouldn't work in 3.1?

推荐答案

看起来浏览器要求您返回节点才能查看图形视图.只需在起始节点和结束节点上添加变量,然后将其返回即可.

Looks like the browser requires you to return nodes in order to see the graphical view. Just add variables on your start and end nodes and return them.

MATCH (a:User {username: 'user6'})-[r]-(b)
RETURN r, a, b

这篇关于用于获取节点所有关系的密码查询不会在3.1中返回图形表示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆