【发布时间】:2019-03-02 03:21:15
【问题描述】:
我对 Neo4J 有相当多的经验,但对 graphql 还是个菜鸟
我通过运行创建了我的 graphql 架构:
CALL graphql.idl(null)
我有一个带有三个标签的节点类型。我尝试在 graphiql 中运行以下查询并得到相同的错误。由于堆栈,我想知道 graphiql 是否正在添加 meta 并移动到 neo4j 浏览器 - 同样的错误。
查询:
CALL graphql.execute('mutation { createArrival(uuid:"graphql")}')
错误:
Failed to invoke procedure `graphql.execute`: Caused by: java.lang.RuntimeException: Error executing GraphQL Query:
ExceptionWhileDataFetching{path=[createArrival]exception=org.neo4j.graphdb.QueryExecutionException: Invalid input 'n': expected whitespace, comment, '{', node labels, MapLiteral, a parameter, a relationship pattern, '(', '.', '=' or "+=" (line 1, column 69 (offset: 68))
"CREATE (node:Arrival) SET node = {properties} SET node:`Event`, SET node:`Configuration`"
^locations=[SourceLocation{line=1, column=12}]}
我可能正在做一些非常明显错误的事情,但我们将不胜感激
【问题讨论】:
-
对不起,这是一个错误,将在下一个版本中修复。