带参数映射的neo4j密码设置语句 [英] neo4j cypher set statement with parameter map

查看:52
本文介绍了带参数映射的neo4j密码设置语句的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在努力寻找如何将set cypher命令与参数映射一起使用的定义

I'm struggling to find a definition of how to use the set cypher command with a parameter map

备忘单说使用:SET n = {map}

我尝试过:

START n = node(11379)
SET n = {Name: "Random Test Change"}

在我的服务器上

我收到错误消息:-

`.' expected but `=' found

我在做什么错了?

推荐答案

可以像这样使用map参数:

The map parameter could be used like this:

String query = "START n = node(11379) SET n = {map}";

Map<String, String> myMap = new HashMap<String, String>();
myMap.put("Name", "Random Test Change");

Map<String, Object> queryParameters = new HashMap<String, Object>();
queryParameters.put("map", myMap);

ExecutionEngine engine = new ExecutionEngine(graphDatabase);
executionResult = engine.execute(query, queryParameters);

这篇关于带参数映射的neo4j密码设置语句的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆