BlueXIII's Blog

热爱技术,持续学习

0%

Neo4j学习笔记

下载

https://neo4j.com/download-center/

官方文档

https://neo4j.com/docs/

参考文章

GUI

http://localhost:7474/browser/

bolt://127.0.0.1:7687
初始密码: neo4j/neo4j

APOC

官网

https://github.com/neo4j-contrib/neo4j-apoc-procedures
https://neo4j-contrib.github.io/neo4j-apoc-procedures/

配置

$NEO4J_HOME/conf/neo4j.conf
dbms.security.procedures.unrestricted=apoc.*

测试

1
2
3
4
5
6
7
CALL dbms.functions() YIELD name
WHERE name STARTS WITH 'apoc.'
RETURN count(name)
UNION
CALL dbms.procedures() YIELD name
WHERE name STARTS WITH 'apoc.'
RETURN count(name)
1
2
3
call apoc.help('meta');
call apoc.meta.graph();
call apoc.generate.ba(1000, 2, 'Person', 'FRIEND_OF');

Spring Data Neo4j

https://docs.spring.io/spring-data/neo4j/docs/5.1.9.RELEASE/reference/html/