neo4j-graphql-js
neo4j-graphql-js copied to clipboard
Error when extracting result for relationship mutation
The generated Cypher queries for relationship create and delete mutations return a record with the column name being the name of the return type.
extractQueryResult changes the first character of the return type to lowercase when trying to get the result, causing an error This record has no field with key 'returnType', available key are: [ReturnType].
I guess this only comes up when defining the types and mutations manually, since the return type for the generated relationship mutations will begin with _.
Hey @danielmcmillan - could you provide some more details so we can try to reproduce? For example your type defs and some sample code showing how you are using neo4j-graphql.js?
https://github.com/neo4j-graphql/neo4j-graphql-js/issues/608