嘗試提出以下請求:axios({ headers: { Accept: 'application/json', }, method: 'post', url: 'http://localhost:4000/graphql', data: { query: `mutation {login(email: "myEmail", password: "MyCoolPasswordHello") {token refreshToken}`, }, }).then(function(response) { console.log('done'); });應(yīng)該像游樂場:mutation{ login(email:"myEmail", password:"MyCoolPasswordHello") {token refreshToken}}但我不斷得到Syntax Error: Expected Name, found <EOF>
如何解決以下錯誤“”語法錯誤:預(yù)期名稱,找到 <EOF>”
桃花長相依
2022-07-08 18:16:38