In Java I can: public String getMetaData(String property_name) throws InterruptedException { try { StatementResult result; result = session.run("MATCH (n:MetaData) RETURN n."+ property_name +" as res LIMIT 1"); if (result.hasNext()) { Record record = result.next(); return record.get("res").asString(); } } catch (Exception ex) { System.out.println(ex.getMessage() + "\nError when executions query"); } return ""; }
but in C++ version only: neo4j_value_t params = neo4j_null; neo4j_result_stream_t *results = neo4j_run(session, query.c_str(), params); neo4j_result_t *record = neo4j_fetch_next(results); if (record) { return neo4j_result_field(record, 0); } return neo4j_null; 0 is equivalent od "res" if "res" is alone? -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.