简体   繁体   English

密码查询:如何在Neo4j中保存密码查询?

[英]Cypher Query: How to Save a Cypher Query inside Neo4j?

I am trying to save a cypher query inside a cypher query. 我正在尝试将密码查询保存在密码查询中。 But have been unable to. 但是一直无法。 The goal of my app is to allow to save a cypher query and query the cypher queries in neo4j, and then be able to add values inside them. 我的应用程序的目标是允许保存密码查询并在neo4j中查询密码查询,然后能够在其中添加值。

Example 
create (q:Query{QID:'1',Query:'Create (u:User{Type:'{{Programmer}}'})'}) return q

How can I write the cypher query correcty? 如何正确编写密码查询? As well as change the values with parameters? 以及使用参数更改值? Thanks. 谢谢。

对要保存的语句使用双引号:

create (q:Query{QID:'1',Query:"Create (u:User{Type:'{{Programmer}}'})"}) return q

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM