try (Session session = driver.session(SessionConfig.forDatabase(serverName))) {
Map<String, Object> props = new HashMap<>();
props.put("name", user.getName());
props.put("id", user.getId());
props.put("userType", user.getUserTypeEnum().toString());
String query = "CREATE (n:User $props)";
session.run(query, Values.parameters("props", props));
}
When the query runs i get no error , the node is being created in the DB but it is no setting the properties, when debuggin the code the map "props" is being filled correctly , but its still showin null inside the DB.
Discussed in #3559
Originally posted by sgaitanp March 2, 2026
Hello , im having trouble creating a query where i send my node properties as a map.
When the query runs i get no error , the node is being created in the DB but it is no setting the properties, when debuggin the code the map "props" is being filled correctly , but its still showin null inside the DB.
Im using java springboot , bolt protocol 4.4 for openCypher