Hello, reader today I will tell about syntax error unexpected EOF in graphql Magento 2.
Sometimes you get this error message from postman when running a GraphQL query.
Error : “Syntax Error: Unexpected <EOF> “
Solution 1
Method to be POST
Solution 2
Header field Content-Type to be application/json
Solution 3
Check your passing query is not empty or should be proper format.
Happy codding 🙂 syntax error unexpected eof
Related Post : Add product to cart GraphQL Magento 2