Skip to content
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

Vertex property gets changed from Gremlin Console but not from Python/Goblin script #107

Open
marciodebarros opened this issue Aug 3, 2018 · 2 comments

Comments

@marciodebarros
Copy link

I have the following script to update a property on a vertex (janusgraph 0.2.0). When I run it from the Gremlin Console the value gets changed as expected:

g.V().hasLabel('airport').has('airport_code','ATL').fold().coalesce(__.V().hasLabel('airport').has('airport_code','ATL').property('airport_runways', 5),__.unfold()).next()

However, when I paste the same script on my python code, using gremlin_python(3.2.6) and goblin (2.1.0)

session = await app.session()

await session.g.V().hasLabel('airport').has('airport_code', 'ATL').fold().coalesce(
    __.V().hasLabel('airport').has('airport_code','ATL').property('airport_runways', 7),
    __.unfold()).next()

await session.flush()

The value for the airport_runways property does not get updated. Any suggestions on what could I be missing ?

@davebshow
Copy link
Owner

Not sure off the top of my head. Does Janus need a commit there? Have you tried it with Tinkergraph? If so, does it work there?

@marciodebarros
Copy link
Author

Hi Dave, I haven't tried the same using Tinkergraph. How can I setup my Goblin app to connect to it ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants