cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

How to view auto generated cypher statements?

q6qgs
Node Link

how to see generated cypher for graphql schema?
Using the neo4j-graphql-js library, it is apparently possible to log out the generated cypher statements with an environment variable:

DEBUG=neo4j-graphql-js node yourcode.js

Can someone explain to me how this works, and how I can 'run' the env variable to log out the statements?

2 REPLIES 2

MuddyBootsCode
Graph Steward

If you're just curious as to what mutations are created it's a lot easier to see them in the Graphiql playground as you can see the parameters as well. Sorry, I know that's not a direct answer to your question.

on windows machine you can use

set DEBUG=neo4j-graphql-js

then you can run your code like node