We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I'm using get_or_create() class method to bulk create a set of nodes.
get_or_create()
However, I also would like to pass additional relationship properties as well, like a date for example:
date
class PetsRel(StructuredRel): date = StringProperty() class Dog(StructuredNode): name = StringProperty(required=True) owner = RelationshipTo('Person', 'owner') class Person(StructuredNode): name = StringProperty(unique_index=True) pets = RelationshipFrom('Dog', 'owner', model=PetsRel) bob = Person.get_or_create({"name": "Bob"})[0] bobs_gizmo = Dog.get_or_create({"name": "Gizmo"}, relationship=bob.pets, rel_props=({"date": '01-01-2015"}))
What do you think ?
If we compare with py2neo, they separated the bulk operations into 2 functions:
Could you add support for that in the future ?
Bulb node insertion and merging is super useful, especially with a high-level OGM like Neomode.
Thanks for the support !
The text was updated successfully, but these errors were encountered:
This would be awesome. In my project, I'll either need to use raw cypher queries or switch to py2neo.ogm, but this would have been great to have.
Sorry, something went wrong.
No branches or pull requests
Hi,
I'm using
get_or_create()
class method to bulk create a set of nodes.However, I also would like to pass additional relationship properties as well, like a
date
for example:What do you think ?
If we compare with py2neo, they separated the bulk operations into 2 functions:
Could you add support for that in the future ?
Bulb node insertion and merging is super useful, especially with a high-level OGM like Neomode.
Thanks for the support !
The text was updated successfully, but these errors were encountered: