GraphQLBundle
GraphQLBundle copied to clipboard
Restrict to send JSON request as string (object expected)
| Q | A |
|---|---|
| Bug fix? | yes |
| New feature? | no |
| BC breaks? | no |
| Deprecations? | no |
| Tests pass? | yes |
| Documented? | no |
| Fixed tickets | |
| License | MIT |
Return value of getParsedBody must be array. But passed string will cause TypeError
Example
fetch("ENDPOINT", {
"headers": {
"content-type": "application/json",
},
"body": "111",
"method": "POST"
});