When I run first query and check result1 I see that there is only one node in it, which is the expected result. But after running second query, both result1 and result2 has 2 nodes (member_1 and member_2) in them.
Looks like formatter keeps its internal state between queries. There is a reset function in ResponseFormatter but I could not find any reference to it.
Hi Christophe,
Looks like there is an issue with formatter.
$client = ClientBuilder::create() ->addDefaultLocalConnection() ->setAutoFormatResponse(true) ->build();
$query = "MATCH (member:Member {username:'member_1'}) RETURN member"; $result1 = $client->sendCypherQuery($query)->getResult();
$query = "MATCH (member:Member {username:'member_2'}) RETURN member"; $result2 = $client->sendCypherQuery($query)->getResult();
When I run first query and check result1 I see that there is only one node in it, which is the expected result. But after running second query, both result1 and result2 has 2 nodes (member_1 and member_2) in them.
Looks like formatter keeps its internal state between queries. There is a reset function in ResponseFormatter but I could not find any reference to it.