postlight / headless-wp-starter

🔪 WordPress + React Starter Kit: Spin up a WordPress-powered React app in one step
https://archive.postlight.com/labs/wordpress-react-starter-kit
GNU General Public License v2.0
4.48k stars 650 forks source link

GraphQL endpoint error #97

Closed nathanqueija closed 6 years ago

nathanqueija commented 6 years ago

Hi, guys. When I try to access graphl api through http://localhost:8080/graphql I get this error:

{
   "errors":[
      {
         "message":"Syntax Error GraphQL (1:1) Unexpected <EOF>\n\n1: \n   ^\n",
         "category":"graphql",
         "locations":[
            {
               "line":1,
               "column":1
            }
         ]
      }
   ]
}

I don't know why. Can you help me, please? Thanks.

tristanoneil commented 6 years ago

Are you passing a query to the endpoint? I believe this is expected behavior if you're not.