You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you know there's only one relationship, first_rel_to(node).destroy
works. There should probably be an all_rels_to method that returns an
enumerable, then you could to all_rels_to(node).map(&:destroy).
If there's only one it should be a has_one assocation and you should be able to just say node.assocation = nil. It's the has_many that's tricky here. In ActiveRecord you can say node.assocation.delete(other_node). ActiveRecord goes to a lot of trouble to let you use associations a lot like arrays
See this stack overflow post:
http://stackoverflow.com/questions/27355400/how-to-remove-relationship-in-neo4jrb-3-0
The text was updated successfully, but these errors were encountered: