I am looking for examples on usage for neo4j_client in C++. In the test suite I see the neo4j_result_t, but no example of iterating or calling fields by name. Is that possible?
Iterate over results in neo4j_client for C++
235 views Asked by Brian Dolan At
1
Results are returned as a
neo4j_result_stream_t
, which represents a stream of result rows. The number of the columns in the result is available vianeo4j_nfields
, and their names vianeo4j_fieldname
, both of which take theneo4j_result_stream_t
pointer as a parameter.To iterate over the result rows, use
neo4j_fetch_next
which returns aneo4j_result_t
. And to extract values for each column from the row (the fields), pass the pointer toneo4j_result_field
(along with the index of the column).An example would be something like this: