-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
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
what is the correct way to write get_or_create_edge #266
Comments
This code quite dirty (you may need some adaptations), but it works well for me (I use it as base class for all Edge classes in OGM):
Would be happy to get feedback with improvements for the snippet class above |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I wrote get_or_create_vertex and it works fine (at least I can see the data correctly)
But I could not figure out a way to do get_or_create_edge. Using
edge.create(_from, _to)
directly is creating duplications every time I run the script to update the data from mongo to orientdb(selected data only). how do I implement orientdb_relation_create_edge ?The text was updated successfully, but these errors were encountered: