ruby-on-rails - 参数错误 : Invalid session type: :server_db (expected one of [:http, :bolt,:嵌入])

标签 ruby-on-rails neo4j cypher

我正在尝试使用 Ruby on Rails 创建一个节点,并且按照 here 中的步骤进行操作.

在我执行之前一切都很好

Asset.create(title: 'A predictive analysis of predictive analytics')

它给了我

ArgumentError: Invalid session type: :server_db (expected one of [:http, :bolt, :embedded])"

如何解决这个问题?

最佳答案

您能否通过将 config/development.rb 文件中的 config.neo4j.session_type = :server_db 行替换为以下行来进行测试:config.neo4j .session.type = :bolt

干杯

关于ruby-on-rails - 参数错误 : Invalid session type: :server_db (expected one of [:http, :bolt,:嵌入]),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45033520/

相关文章:

java - 从 Java 对 neo4j 数据库执行查询,解析结果

graph - Neo4j db.schema.visualization 提供了额外的递归关系

ruby-on-rails - rails : Render Json Status Problems

Neo4j TestGraphDatabase : Caused by: java. lang.IllegalStateException:文件仍在映射时无法关闭 PageCache:

mysql - 如何在单个 spring-boot 应用程序中使用 MySQL 和 neo4j

neo4j "try"创建与节点的关系

ruby-on-rails - Rails 应用程序 Rake 任务不知道如何构建其他 Rake 任务

ruby-on-rails - 错误:执行 gem 时 ...(Gem::Exception)OpenSSL 不可用

ruby-on-rails - Ruby on Rails : URL from ids to names/titles etc

date - 如何在Neo4j中处理日期