Graph database_Integrated use of Neo4j and SpringBoot_Practical creation of star relationship graph---Neo4j graph database work notes 0010

Then let’s take a look at this celebrity relationship map

 

can be seen here

This is the original startRelation

 

We can write CQL to query the corresponding relationship

As you can see, after querying it first, you can then create it 

 

We can get the CQL we wrote to create celebrity relationships

Execute in springboot

 

As you can see, here we first write a StarRelationRepository and then inherit it

Neo4jRepository then

Guess you like

Origin blog.csdn.net/lidew521/article/details/132338913