I've changed a couple of my queries and I just realized that I can't debug my code anymore. When the traversal is introspected by PyCharm it doesn't return anything anymore !
so if I don't step in the function that builds and traverses my traversal I get results, but if I do it in step by step hasNext() says there is nothing !
I've already noticed in the past that the traversal contains steps I never added and put it on debug mode but now it's a problem. Here is an example, in step by step of what is in the traversal before hasNext is called and says there is nothing
[['V'], ['hasLabel', 'OID'], ['has', 'uuid', '90d68e71-aaaa-2bd1-ffff-06eab5232461'], ['has', 'email', '
email.com'], ['values', '__len__'], ['values', '__len__'], ['values', '__len__'], ['values', '__len__'], ['as', 'v'], ['out'], ['values', '__len__'], ['values', '__len__'], ['values', '__len__'], ['values', '__len__'], ['values', '__len__'], ['values', '__len__'], ['values', '__len__'], ['values', '__len__'], ['as', 'v'], ['select', <Pop.all_: 1>, 'v'], ['by', [['unfold'], ['valueMap', True], ['fold']]], ['values', '__len__'], ['values', '__len__'], ['values', '__len__'], ['values', '__len__']]
Executing it in a Python shell or evaluating the expression in PyCharm at the exact same time returns what is expected:
In [264]: g.V().hasLabel('OID').has('uuid', '90d68e71-aaaa-2bd1-ffff-06eab5232461').has('email', '
email.com').as_('v').out().as_('v').select(Pop.all_,'v').by(unfold().valueMap(True).fold()).toList()
Out[264]:
[[{<T.id: 1>: 1385,
<T.label: 4>: 'OID',
'v_created_at': [datetime.datetime(2020, 10, 4, 16, 38, 49)],
'created_at': ['2019-01-01T12:13:14.100000'],
'uuid': ['90d68e71-aaaa-2bd1-ffff-06eab5232461'],
{<T.id: 1>: 1390,
<T.label: 4>: 'UID',
'twou_id': ['d63ec88c-c7e8-462f-ac73-dab9d31fafe9'],
'v_created_at': [datetime.datetime(2020, 10, 4, 16, 38, 49)]}]]