-
Notifications
You must be signed in to change notification settings - Fork 147
Can't return @cypher custom property when using generated mutations. Get Error Neo4jError: Expected parameter(s): cypherParams #601
Comments
I'm having the same error too. Here is how I replicated the bug and the console outputs: Query:
console output:
Notice that the second code block here contains "cypherParams". Mutation:
console output:
Notice that the second code block here doesn't contain "cypherParams". It may be why the cypher query that is run from the generated mutation returns this error. |
How did u manage to solve this. The cypher statement doesnt seem to need a param at all @CraigDeverall |
I'm sorry @teenkevo I couldn't say exactly. I believe it was worked around by simply not returning that custom cypher statement key. |
Let me do just that, thanks. @CraigDeverall |
Replicated situation below:
Type Definition:
type MyType { id: ID! name: string custom: @cypher(statement: """ """) }
Mutation Call:
mutation ($id: ID!, $name: String! ) { UpdateMyType(id: $id, name: $name) { id name custom } }
Error:
"Neo4jError: Expected parameter(s): cypherParams", "", " at captureStacktrace (node_modules/neo4j-driver/lib/result.js:275:15)", " at new Result (node_modules/neo4j-driver/lib/result.js:66:19)", " at newCompletedResult (node_modules/neo4j-driver/lib/transaction.js:446:10)", " at Object.run (node_modules/neo4j-driver/lib/transaction.js:285:14)", " at Transaction.run (node_modules/neo4j-driver/lib/transaction.js:121:32)", " at _callee2$ (node_modules/neo4j-graphql-js/dist/index.js:192:35)", " at tryCatch (node_modules/regenerator-runtime/runtime.js:63:40)", " at Generator.invoke [as _invoke] (node_modules/regenerator-runtime/runtime.js:293:22)", " at Generator.next (node_modules/regenerator-runtime/runtime.js:118:21)", " at asyncGeneratorStep (node_modules/@babel/runtime-corejs2/helpers/asyncToGenerator.js:5:24)"
Wasn't a critical issue to work around but it felt like a bug.
The text was updated successfully, but these errors were encountered: