I'm new to this Gremlin-driver called Goblin. I was following the introduction/tutorial on Goblin - Async Python toolkit. As described in the documentation, I created a Python coroutine:
loop = asyncio.get_event_loop()
app = loop.run_until_complete(loop)
app.register(Person, Knows)
async def go(app):
session = await app.session()
leif = Person()
leif.name = 'Leif'
leif.age = 28
jon = Person()
jon.name = 'Jonathan'
works_with = Knows(leif, jon)
session.add(leif, jon, works_with)
await session.flush()
result = await session.g.E(works_with.id).next()
assert result is works_with
people = session.traversal(Person) # element class based traversal source
async for person in people:
print(person)
When I ran the Python script, the program seemed to be running into an infinite loop. Neither result nor errors was shown in console at this point.
Hope anyone can help me! Alan