Hi Stephen.
Thanks a lot for taking the time to reply. I have to say you guys have always been top notch and fast with your replies.
This helped me a lot. Here's what's been up:
My
script requests contain
transaction : true and
inSession : true so I
assumed that whatever writes my scripts made were auto commit (as per the documentation). It turns
out this isn't the case. I however seem to have to commit changes to be
able to get Properties back.
Basically:
neo4jsample:
mssg 1 : g.addVertex([name:'john']);g.commit()
mssg 2 : g.v().map();
This
works, I can find the vertex and get properties. If I don't commit() I
can find the vertex but not the map() (it returns empty). In TinkerGraphs I don't have
to commit to get the map(). I still have to commit to save changes to graph though.
For full disclosure here's how the session and script are set up:
Open session with:- protocol version 0
- Message type 1
- randomly generated session UUID
- randomly generated request UUID
- killSession set to false, graphName set to 'neo4jsample'
- Channel : 2
- username : null
- password null
Script:- protocol version 0
- Message type 3
- Session UUID returned by the SESSION_REPLY
- randomly generated request UUID
- channel set to 2, transaction set to true, inSession set to true
- language : 'groovy'
- script : <script>
- bindings : null
How am I meant to get auto-commit to work? And am I doing anything wrong that would result in getting empty .map() even if I don't commit.
Thanks in advance if you have any more information that could help.