package com.dgt.graphdemo.entity;

import org.neo4j.ogm.model.Result;
import org.springframework.data.neo4j.annotation.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Component;

/**
 * @author lugela
 * @Title: RepTest
 * @ProjectName graphdemo
 * @Description: TODO
 * @date 2019/6/23 18:21
 */
public interface RepTest extends CrudRepository<RepEntity,Long> {

    @Query("MATCH p=(c:Claimno{id:'A000CHD1830000303355'})-[*1..5]->(m) RETURN p")
    public Result getGraph();
  /*  @Query("MATCH p=(c:Claimno{id:'A000CHD1830000303355'})-[*1..5]->(m) RETURN p")
    public RepEntity findById();*/
}
