Skip to content

Commit

Permalink
TODO for highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
cheerfulstoic committed Aug 4, 2014
1 parent 887f638 commit d3363ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/e2e/has_n_spec.rb
Expand Up @@ -125,7 +125,7 @@
end

describe "me.friends.create(name: 'Joe')" do
# Should be able to create both relationship and node off of an association
# TODO: Should be able to create both relationship and node off of an association

This comment has been minimized.

Copy link
@andreasronge

andreasronge Aug 4, 2014

Member

Yes, it would be nice. Maybe me.friends.create({name: 'Joe'}, {since: 2011}) or
me.friends.create(Person.new(name: 'Joe'), Friendship.new(since: 2001)} where Friendship includes the Neo4j::ActiveRel module. There are three things we want: create node (create), create relationship to existing node (associate) and create both node and relationship in one go (transaction).

# Maybe .create / .push for creating relationship / node (respectively)
# Maybe should be able to create relationships by passing either node object or hash of values
end
Expand Down

0 comments on commit d3363ad

Please sign in to comment.