How can I send a statement with an integer type in neo4j-client? Fore example, in CREATE (n:Node {id:1})
the value of the field id is 1. Also, how can I retrieve it?
I have tried, assuming:
std::stringstream ss;
neo4j_run(connection,
ss.str().c_str(), neo4j_null);
--
ss << "RETURN 'hello world'"; // server returns 'hello world'
ss << "RETURN 1"; // server returns 1
ss << "CREATE (n:Node {id:" << std::to_string(2) << "}); // Statement failed
ss << "CREATE (n:Node {id:" << neo4j_int(2) << "})"; // compile error
I am also printing those strings in the console, and CREATE (n:Node {id:" << std::to_string(2) << "})
copy-pasted fro the consolo to the web gui works.