neo4j-graphql-js icon indicating copy to clipboard operation
neo4j-graphql-js copied to clipboard

Error when extracting result for relationship mutation

Open danielmcmillan opened this issue 6 years ago • 2 comments

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 _.

danielmcmillan avatar Feb 27 '19 04:02 danielmcmillan

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?

johnymontana avatar Jun 03 '19 23:06 johnymontana

https://github.com/neo4j-graphql/neo4j-graphql-js/issues/608

michaeldgraham avatar May 02 '21 04:05 michaeldgraham