无法使用rest密码在Neo4j中应用skip、limit和order子句
我在Grails中使用依赖关系Neo4j rest graphdb:2.0.1使用Neo4j 2.1.5,并使用 RestAPI RestAPI=新RestAPIFacadehttp://localhost:7474/db/data RestCypherQueryEngine rcqer=新的RestCypherQueryEnginerestapi 我创建了一个参数列表 Map paramVal=新的HashMap;参数。输入“限制”,10;paramVal.put'skip',0;参数。输入“订单”、“名称” 我的问题是这样的 String query=match c:MyLabel返回idc作为Id,c.name作为name skip${param}.skip limit${param}.limit 像这样执行查询 result=rcqer.queryquery,org.neo4j.helpers.collection.MapUtil.mapparam,paramVal 这显示错误无效输入“.”:应为空白、限制、加载CSV,。。。。。 但是,当参数仅在where子句中使用时,它可以完美地工作。 此外,当仅用于ORDERBY子句时,结果不符合顺序,并且不会出现任何错误 请让我知道遗漏了什么或者是否有限制。无法使用rest密码在Neo4j中应用skip、limit和order子句,neo4j,cypher,Neo4j,Cypher,我在Grails中使用依赖关系Neo4j rest graphdb:2.0.1使用Neo4j 2.1.5,并使用 RestAPI RestAPI=新RestAPIFacadehttp://localhost:7474/db/data RestCypherQueryEngine rcqer=新的RestCypherQueryEnginerestapi 我创建了一个参数列表 Map paramVal=新的HashMap;参数。输入“限制”,10;paramVal.put'skip',0;参数。输入“
提前感谢。我不使用库中的特定部分,但我希望您不需要直接引用param,因为这是{}语法中没有美元的部分,这将使您的查询:
String query = "match (c:MyLabel) return id(c) as Id, c.name as name skip {skip} limit {limit}
我已经编辑了这个问题,查询按预期使用了参数,它适用于c.name={param}.name这样的条件,但是给出了skip和limit的错误