Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
887f638
commit d3363ad
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Yes, it would be nice. Maybe
me.friends.create({name: 'Joe'}, {since: 2011})
orme.friends.create(Person.new(name: 'Joe'), Friendship.new(since: 2001)}
whereFriendship
includes theNeo4j::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).