Syntax error unexpected eof in Graphql

syntax error unexpected eof

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

Like us on Facebook and Linkedin for more updates.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top