neo4j.rb

    0热度

    1回答

    class Client =begin Clients are individual users =end include Neo4j::ActiveNode include Neo4j::UndeclaredProperties include Neo4j::Timestamps # will give model created_at and upd

    0热度

    1回答

    class Client include Neo4j::ActiveNode end > client = Client.new => #<Client uuid: nil, bot_client_id: nil, created_at: nil, email: nil, first_name: nil, last_name: nil, sms: nil, telegram_id

    0热度

    2回答

    我有一个节点,一个关系 class User include Neo4j::ActiveNode property :first_name end class Connection include Neo4j::ActiveRel include Enumable creates_unique from_class 'Use

    1热度

    1回答

    最近我升级到Neo4j 3.1.3,Neo4j.rb 8.0.13和Neo4j-core 7.1.2。从那以后,rels方法抛出了undefined method 'rels' for #<Neo4j::Core::Node:xxxxxxxx>错误。 我的查询, student.rels(dir: :outgoing, type: :enrolled_in).count 随着rels方法,crea

    0热度

    1回答

    如何解决此警告(警告:约束选项不再支持(定义上StayPal为USER_ID) 我使用 Neo4j.rb> 8 的Neo4j> 3 继 http://neo4jrb.readthedocs.io/en/8.0.x/ActiveNode.html using property :user_id, constraint: :unique 如何添加独特性?

    0热度

    1回答

    我正在升级到Neo4j.rb版本8的过程中。按照upgrade guide中的说明进行操作后,以前传递的规范现在失败。 具体而言,count,persisted?,all,last和find似乎来错乱彼此。我可以创建一个帐户,查看是否存在,如果我计算帐户,请查看该帐户,但如果查找最后一个帐户或所有帐户,或者尝试从其ID中找到该帐户,则无法查看该帐户。 下面的控制台会话输出。我疯了吗? [1] pr

    1热度

    2回答

    我有两个节点,其间具有相同属性的相同边缘一遍又一遍地创建。我怎样才能避免这种情况?如果边缘具有不同的属性,那么它的OK和它需要保留,但是如果属性相同,则只应该有一条边。 编辑:我正在使用rails,我想通过应用程序来执行此操作,而不是使用Cypher查询。 编辑:为关联共享一些代码: dis = Disease.where(disease: params[:disease]).first fac

    1热度

    1回答

    通过旧版本的Neo4j的& eno4j.rb一切工作良好 RSpec.configure do |config| config.before(:suite) do DatabaseCleaner.clean_with(:truncation) DatabaseCleaner[:neo4j, connection: { type: :server_db, path: E

    1热度

    1回答

    我试图从Heroku的迁移到AWS,但我Sidekiq工作持续,出现以下错误失败: Errno::EPIPE: Broken pipe @ io_write - <STDOUT> 我可以用perform_now成功地从控制台运行的工作,一切都在Heroku中工作得很好,所以我认为问题在于我的AWS设置。我已经看到引用堆栈溢出和Github周围不正确的守护进程,但不知道如何解决这个问题。 现在我启动

    1热度

    1回答

    有什么办法可以使用默认范围,如活动记录? https://apidock.com/rails/ActiveRecord/Scoping/Default/ClassMethods/default_scope 或其他任何与我可以从任何查询中排除的节点?