-
Notifications
You must be signed in to change notification settings - Fork 872
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
UPDATE EDGE statement [moved] #1114
Comments
I second this request and the ability to use the update edge in Blueprints |
+1 |
+1 |
Makes sense, 👍 |
+1 |
1 similar comment
+1 |
Same for UPDATE VERTEX |
+1 |
2 similar comments
+1 |
+1 |
hey, any updates on the version this feature will be in? |
+1 |
5 similar comments
+1 |
+1 |
👍 |
+1 |
👍 |
As far as I can tell, update works (including in/out):
Although, using a query inside the set clause for in/out will cause it to return array, which is not the desired behavior. Example:
When later querying the table Friend, we can see column "in" will contain [#11:4], emphasis on the brackets [], which means an array. Upsert also works, although when creating a new vertex it doesn't set the in/out properties.
It will result in a longer query when using sub-query for To summarize, the only problem I can see is using a sub-query for in/out. So:
|
That is the reason for the suggestion, I believe. That, and also a way to change the edge type with one command. Whereas, I see that also as a rare "edge" use case. LOL! Scott |
Added a PR that resolves the sub-query issues. Assuming it is accepted, the only reason to keep this issue would be to create a command that could change the edge type. In my opinion, even if there should be a command to change it, UPDATE EDGE should not be the name of that command. It's a bit misleading, since we are really changing the edge it self, and not simply updating it's properties. |
Maybe Scott |
An |
So, then 👍 👍 for me! 😄 Scott |
Hi guys, happy to announce that I implemented this in develop branch (2.2).
The implementation validates that
We are not in RC yet, so if you think UPDATE EDGE is not the most appropriate name, please vote for another one ;-) I'm waiting for final confirmation to update the docs Thanks Luigi |
sounds good to me, +1 |
@luigidellaquila does it also support UPSERT? Thanks! |
Hi @michael-go no, right now it doesn't, but I'll work on that in the near future. Thanks Luigi |
I see now that a ticket for Edge UPSERT already exists: #4436 Thanks |
Yes, you are right, thank you for the pointer! Luigi |
This is Issue 1114 moved from a Google Code project.
Added by 2012-10-14T22:09:41.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Original labels: Type-Enhancement, Priority-Low, v2.1.0
Original description
The text was updated successfully, but these errors were encountered: