cancel
Showing results for 
Search instead for 
Did you mean: 

Can't access node as one object property in GraphQL using @cypher directive

costa_fernando
Node Clone

Hi,

I'm trying to return an entire node as one of the properties of a type using custom directive @cypher available in the neo4j-graphql-js package, but I get this error in GraphQL Playground in the browser, when I try to access a property of this node:

Variable undefined not defined (line 5, column 128 (offset: 404))\n\"return {ability: ability, grade: grade}\", {this: student, cypherParams: $cypherParams}, true) | student_abilitiesPerformances {undefined}] } AS student \"\n

This is the code in the back-end:
2X_9_96f63d9d00b2560833a0b5c07021b32051ba70a4.png

This is the GraphQL query I'm trying to make:
2X_7_7ec4c642d036e05ce37104dc1a69079a70d8d0eb.png

What am I doing wrong here?

1 ACCEPTED SOLUTION

costa_fernando
Node Clone

It seems like a bug in neo4j-graphql.js. Is being addressed here to anyone interested: https://github.com/neo4j-graphql/neo4j-graphql-js/issues/528.

View solution in original post

1 REPLY 1

costa_fernando
Node Clone

It seems like a bug in neo4j-graphql.js. Is being addressed here to anyone interested: https://github.com/neo4j-graphql/neo4j-graphql-js/issues/528.