An easy twist to save your day from Graphql syntax error

Problem

You are dismayed when you are developing Apollo fullstack while too many changes have been made and graphql module is compaining syntax error.

Where is the error? The error information in the console is terrible and you don’t have a clue.

Solution

Open the file in path node_modules/graphql/error/syntaxError.js and add this line

Tada, the error schema is revealed now.