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 run Node JS graphql neo4J app with DEBUG mode in Windows 10 machine

I came across that I can run graphql neo4j Node JS app in DEBUG mode to view the Cypher queries behind and below NPM script is suggest!

"scripts": {
  "start": "DEBUG=@neo4j/graphql:* node index.js"
},

I am getting error in Window 10 command prompt like, What's the solution here?

'DEBUG' is not recognized as an internal or external command,
2 REPLIES 2

14

If you are used to powershell, I recommend this setup in your package.json , then you can just run npm start so you don't type all that out every time.

"scripts": {
    "start": "@powershell $env:DEBUG='*,-express:router*' ; node app.js"
},

Thank you very much. This was a great help in working through chapter 4 page 78 of Full Stack GraphQL Applications by William Lyon.