关于Neo4j嵌入式开发
发布于 6 年前 作者 g2453 2362 次浏览 来自 问答

在Neo4j嵌入式开发中,使用java代码如何进行条件查询?或者如何进入使用Cypher进行查询?请各位大神不吝赐教!!!

1 回复

github上面有例子,可以找到。 粘贴一下我们怎么用cypher语句查询的,下面是一个简单的示例

@Repository public interface MobileVariableRepositories extends GraphRepository<Mobile> {

@Query(“match(x:MOBILE{name:{mobile}})<-[r]-(y:MOBILE) where type®={relation} and y.userType in [‘2’,‘3’,‘4’] return count(distinct(y)”) int registerMobileHitOtherRelationQ(@Param(“mobile”) String mobile, @Param(“relation”) String relation); }

回到顶部