-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
$bolt->pull() returns private objects #49
Comments
And also, when I run a query that takes more than 60 seconds like:
it produces this error:
even I set |
Hi. The structure class is immutable and you have to access properties through methods. https://github.com/neo4j-php/Bolt/blob/master/src/structures/Path.php |
You set transaction timeout, not the connection timeout. If you want to set connection timeout, check up this page https://github.com/neo4j-php/Bolt/wiki/Connection |
oh sorry my bad, thank you.
Yes, I set the timeout parameter 120000 in the constructor, it works now thank you. However I have now another problem,
Sorry I'm a newbie in graph db's and bolt protocol, thank you for your kind helps. |
If you call run, it will execute query in auto-commit state, which means it will open transaction, execute query and close transaction. It's neo4j behaviour. You can start transaction by yourself with https://github.com/neo4j-php/Bolt/wiki/Usage https://7687.org/bolt/bolt-protocol-message-specification-4.html#transaction |
Hello there, when I run this code,
This is the output of
print_r($bolt->pull());
:I can access the result by
$bolt->pull()[0][0];
However when I run this query:
This is the output of
print_r($bolt->pull());
:I cant access the results neither
$bolt->pull()[0][0]->nodes
,$bolt->pull()[0][0]->rels
,$bolt->pull()[0][0]->ids
they are all private variables, how can I access the result of that query?
Thank you.
The text was updated successfully, but these errors were encountered: