我需要使用 NEODE 库(https://github.com/adam-cowley/neode)将 node.js 项目连接到由 heroku 托管的 graphenedb。
在 neode 文档上,他们使用 2 种方法,基于:
1. 使用直接访问
2. env 文件包含道具
有人遇到过这个问题吗?
1. new Neode('bolt://localhost:7687', 'username', 'password', true);
2. // .env
NEO4J_PROTOCOL=bolt
NEO4J_HOST=localhost
NEO4J_USERNAME=neo4j
NEO4J_PASSWORD=neo4j
NEO4J_PORT=7687