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 或其他任何與我可以從任何查詢中排除的節點?